Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dump the Request object on --debug or -vvv #16

Open
ThomasLandauer opened this issue Sep 20, 2020 · 1 comment
Open

Dump the Request object on --debug or -vvv #16

ThomasLandauer opened this issue Sep 20, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@ThomasLandauer
Copy link
Member

Codeception's console output (see Codeception/Codeception#5977 (comment) for some examples) is misleading in that it suggests that there's an actual HTTP request being made, while in fact it's just a Symfony BrowserKit Request object that is passed to the framework's (front-)controller.

The actual content of this Request object isn't shown anywhere. I used var_dump() in my controller (!) for debugging.

So I'm suggesting to dump the Request object into the console if Codeception is called with the --debug or -vvv flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants