How can I get the detail error messages?

Hey,
My site (Slim 3) was working fine until I added the Minify middleware, all I got was 500 error, no detail errors show.
How Can I know where the error happening?

My code:
$app->add(new \Psr7Middlewares\Middleware\Minify());

If all else fails, you could put these lines in your index.php (before any other code executes):

error_reporting(-1);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);

Just remember to remove them once you found the issue :slight_smile:

1 Like

http://www.slimframework.com/docs/handlers/error.html#default-error-handler

1 Like

Thanks all.
error_reporting is working as my likes.