slimphp / Slim

Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs.
http://slimframework.com
MIT License
11.94k stars 1.95k forks source link

Slim 3 RC2 Uncaught Exception #1589

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hello, I have a problem with the exception handler, exceptions are not automatically caught by Slim and I dont't understand why...

geggleto commented 8 years ago

In App:run .. There is a try-catch https://github.com/slimphp/Slim/blob/3.x/Slim/App.php#L324-L350

If you are referring to there not being a Stack Trace in the output. In RC2 the stack trace has been disabled by default. You can set this to true in your container config to get the stack trace. https://github.com/slimphp/Slim/blob/3.x/Slim/Container.php#L59

silentworks commented 8 years ago

Info on turning error reporting back on.

http://www.slimframework.com/docs/handlers/error.html