Answer the question
In order to leave comments, you need to log in
How to debug if display_errors doesn't help?
The problem is to debug. Project on Laravel. The script works with HTTP Error 500. I found a problematic line, but only with the help of die; . If you put die in front of it, the script works out, after - the site goes down. But that's the question, I can't find out what the problem is because
If you put
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
error_reporting(E_ALL);
Answer the question
In order to leave comments, you need to log in
as an option to wrap the problematic block of code
try {
// проблемный код
} catch (\Throwable $exception) {
\Illuminate\Support\Facades\Log::error($exception);
return response()->json($exception);
}
project/storage/logs/..
and here are the log files. APP_DEBUG=true
LOG_CHANNEL=daily
LOG_LEVEL=debug
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question