Search code examples
symfonysyliussymfony3

How to show errors in browser?


I'm getting started with Sylius. Symfony version is 3.2.7. On some pages I have some errors. The pages show text:

Oops! An Error Occurred

The server returned a "500 Internal Server Error".

Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.

I want the errors to be displayed in browser, with full stacktrace.

I know I can see the error in var/prod.log, but it doesn't show the whole stacktrace, only the last frame. And seeing the error in browser would be more convenient: that's what I'm used to after a lot of working with Yii and Magento.

Is that possible with Symfony/Sylius?


Solution

  • I added /app_dev.php to the url to run the website in development environment, and there I can see the stack trace.

    That is, https://[my_domain]/app_dev.php/[page] instead of https://[my_domain]/[page]