Slim 3: debug mode

Created on 29 Dec 2015  路  3Comments  路  Source: slimphp/Slim

Would you support debug mode, like in Slim 2?

Most helpful comment

Do you mean show uncaught exceptions?

$app = new \Slim\App([
    'settings' => [
        'displayErrorDetails' => true
    ]
]);

All 3 comments

Do you mean show uncaught exceptions?

$app = new \Slim\App([
    'settings' => [
        'displayErrorDetails' => true
    ]
]);

I guess it's something I was looking for. Got stack trace on 500 error in Slim-Skeleton app as expected. What confused me is the for 404 it does not show stack trace, just HTML error page.

EDIT: would be good to have it documented somehow. Slim2 docs has got nice paragraph about debug mode.

There's nothing to stack trace on a 404 - it means that the router failed to find a match.

We'd love a PR to Slim-Website :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

enygma picture enygma  路  3Comments

aranel616 picture aranel616  路  3Comments

JamesTheHacker picture JamesTheHacker  路  3Comments

codeguy picture codeguy  路  4Comments

basuke picture basuke  路  3Comments