try / catch
try {
$TRY$
} catch(\Throwable $exception) {
$CATCH$
}
Dump backtrace
try {
throw new \Exception();
} catch (\Throwable $exception) {
dump($exception->getTraceAsString());
}
Dump location
dump(__METHOD__.'::'.__LINE__);
Stop at location
dd(__METHOD__.'::'.__LINE__);
Log to local file
file_put_contents(__DIR__.'/$FILE$', $LINE$.PHP_EOL, FILE_APPEND);