When my PHP script goes wrong, I see a nice Whoops page with all details of the error.
However, sometimes I need to see the output of where it went wrong (for example in a loop with 1 million items, but only 1 of them gives a problem, I need to see which item). I flush the output after each item, so the page behind the Whoops page shows the last item at the bottom of the page.
Is there a way to hide the Whoops page (temporarily) ?
Using Chrome DevTools, I now hide the DIV that has the class 'Whoops_container' , but it would be nice if there's a more elegant way.
I created a pull request for adding a "hide-button". You can see the necessary changes here: https://github.com/filp/whoops/pull/579/files
This might help until they integrate it, or if they decide not to integrate it.
Here are the changes extracted from the pull request, to add some value to the link:
src/Whoops/Resources/views/header.html.php (add this below the other Button ("COPY")
src/Whoops/Resources/views/header.html.php (add this on the end)