I am trying to create quite error pages for my application by following this article in a cookbook article . Sometimes an error occurs that causes the application to return a single line: 503 Service Unavailable . It would make my life a lot easier if I could see a major mistake or exception. The transition to a development environment does not help, since error patterns are used only in the production process.
I realized that I need to add TwigBundle in the asset configuration to use javascript and css assets. Such problems are really difficult to debug in a production environment.
Setting the debug mode to true in my front controller does not help, as production error patterns are replaced by development patterns.
EDIT
Thanks to Mike Purcell, I was able to get the errors provided. I got
Disable the exception "Symfony \ Component \ Routing \ Exception \ ResourceNotFoundException" in /βΊsnipβ /app/cache/prod/appprodUrlMatcher.php:669
It turns out that the structure should handle the exception, but in case of a possible error inside the Twig error template, it just decides to throw the 503 error.
How do I enable error reporting for the desktop in a Symfony2 application?
I'm tired of guessing what is wrong and clears the cache. What is the best way to debug Twig error patterns during production?
source share