How can I get the detail error messages?

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):

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

1 Like

Thanks all.
error_reporting is working as my likes.