New in Symfony 2.2: Nice fatal error display
December 6, 2012 • Published by Fabien Potencier
Warning: This post is about an unsupported Symfony version. Some of this information may be out of date. Read the most recent Symfony Docs.
Contributed by
Konstantin Myakshin
in #5863.
Symfony displays a nice screen whenever a problem occurs in your code like when an exception is thrown or a PHP warning is triggered. This eases the debugging of problems as the screen gives you the issue, the location of the error, and the full stack trace. And if you setup the ide option, you can even click on any file to open it in your regular IDE or text editor at the right line. That's really nice.
But as of Symfony 2.2, this feature is even nicer as fatal errors are also nicely displayed in your browser like any other errors.
Here is how a fatal error is displayed in Symfony 2.0 and 2.1:
And here is the same fatal error displayed from a Symfony 2.2 application:
Help the Symfony project!
As with any Open-Source project, contributing code or documentation is the most common way to help, but we also have a wide range of sponsoring opportunities.
Comments are closed.
To ensure that comments stay relevant, they are closed for old posts.
http://hosiplan.com/nette/exception.html
good job