Closed mambax7 closed 5 years ago
It would be also nice to have a Debugbar there. Currently it is not included in the: private function reportFatalError($msg)
This is the last ditch failure message, so code which makes assumptions about the availability of the system are mot allowed. As an example, it is possible for Logger::handleException() to be invoked before there is even a database connection. It needs to stay clean. There probably should be a little more information in the message, but no calls that could potentially result in additional errors -- which would result in no message at all.
I do understand the need, and propose a better solution: https://github.com/geekwright/xwhoops
It adds whoops as the handler for any fatal error after user authorization has completed if it is appropriate. Not to be used as an excuse to not handle your own errors, but it is a fine safety net.
Cool! I just installed it, and let you know my experience with it. Thanks for providing it!
It works very well! It caught very nicely couple of errors...
Could you add a screenshots here?
Alain, it's the same as in the demo here: http://filp.github.io/whoops/demo/
The $e->getMessage() is not enough for development.
So instead of this:
we can have this: