Unable to block error traces in a Symfony 3 controller

Viewed 361

I am studying the Symfony\Component\Debug\Debug. As far as I know the AppKernel's constructor can accept a second argument to define whether to use the debug modality or not (true/false). What I actually don't understand is the usage and complementarity of Debug::enable() as it is indicated in the app_dev.php on the official Symfony Github's repository.

For example I tried to throw an Exception on a Controller in order to see the effect and I commented Debug::enable(); within app_dev.php but I always see the error page.

Why am I still seeing error traces in spite of commenting out Debug::enable();?

1 Answers
Related