lib-innerbrowser icon indicating copy to clipboard operation
lib-innerbrowser copied to clipboard

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

Open ThomasLandauer opened this issue 5 years ago • 1 comments

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 avatar Sep 20 '20 22:09 ThomasLandauer

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

ThomasLandauer avatar Jan 14 '21 10:01 ThomasLandauer