Codeception / lib-innerbrowser

InnerBrowser
MIT License
79 stars 19 forks source link

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

Open ThomasLandauer opened 3 years ago

ThomasLandauer commented 3 years ago

Codeception's console output (see https://github.com/Codeception/Codeception/issues/5977#issuecomment-694696510 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.

ThomasLandauer commented 3 years ago

See also https://github.com/Codeception/module-symfony/issues/22#issuecomment-715251498 for some thoughts.