Skip to content
Permalink
Browse files

Debugger: bar is rendered only in shutdown handler

  • Loading branch information
dg committed Nov 28, 2019
1 parent b5a0681 commit bc643c7dfbc3b83a6dd3528ba924ba0bedafeb19
Showing with 1 addition and 9 deletions.
  1. +1 −9 src/Tracy/Debugger/Debugger.php
@@ -263,21 +263,16 @@ public static function shutdownHandler(): void
$error = error_get_last();
if (in_array($error['type'] ?? null, [E_ERROR, E_CORE_ERROR, E_COMPILE_ERROR, E_PARSE, E_RECOVERABLE_ERROR, E_USER_ERROR], true)) {
self::exceptionHandler(Helpers::fixStack(new ErrorException($error['message'], 0, $error['type'], $error['file'], $error['line'])));
return;
}
if (self::$reserved === null) {
return;
}
self::$reserved = null;
if (self::$showBar && !self::$productionMode) {
self::removeOutputBuffers(false);
try {
self::getBar()->render();
} catch (\Throwable $e) {
self::removeOutputBuffers(true);
self::getBlueScreen()->render($e);
self::exceptionHandler($e);
}
}
}
@@ -320,9 +315,6 @@ public static function exceptionHandler(\Throwable $exception): void
} elseif ($firstTime && Helpers::isHtmlMode() || Helpers::isAjax()) {
self::getBlueScreen()->render($exception);
if (self::$showBar) {
self::getBar()->render();
}
} else {
self::fireLog($exception);

0 comments on commit bc643c7

Please sign in to comment.
You can’t perform that action at this time.