src/Debugger/BlueScreen.php
public function render(\Throwable $exception): string
    {
        \ob_start();
        if (Helpers::isAjax() && \session_status() === PHP_SESSION_ACTIVE) {
            $this->renderTemplate($exception, __DIR__ . '/assets/BlueScreen/content.phtml');
            $contentId = $_SERVER['HTTP_X_TRACY_AJAX'];
            $_SESSION['_tracy']['bluescreen'][$contentId] = [
                'content' => \ob_get_clean(),
                'dumps' => Dumper::fetchLiveData(),
                'time' => \time(),
            ];

            return '';
        }

        $this->renderTemplate($exception, __DIR__ . '/assets/BlueScreen/page.phtml');

        return \ob_get_clean();
    }
public function render(\Throwable $exception): string
    {
        \ob_start();
        if (Helpers::isAjax() && \session_status() === PHP_SESSION_ACTIVE) {
            $this->renderTemplate($exception, __DIR__ . '/assets/BlueScreen/content.phtml');
            $contentId = $_SERVER['HTTP_X_TRACY_AJAX'];
            $_SESSION['_tracy']['bluescreen'][$contentId] = [
                'content' => \ob_get_clean(),
                'dumps' => Dumper::fetchLiveData(),
                'time' => \time(),
            ];

            return '';
        }

        $this->renderTemplate($exception, __DIR__ . '/assets/BlueScreen/page.phtml');

        return \ob_get_clean();
    }
public function render ( \ Throwable $ exception ) : string { \ ob_start ( ) ; if ( Helpers :: isAjax ( ) && \ session_status ( ) === PHP_SESSION_ACTIVE ) { $ this -> renderTemplate ( $ exception , __DIR__ . '/assets/BlueScreen/content.phtml' ) ; $ contentId = $ _SERVER [ 'HTTP_X_TRACY_AJAX' ] ; $ _SESSION [ '_tracy' ] [ 'bluescreen' ] [ $ contentId ] = [ 'content' => \ ob_get_clean ( ) , 'dumps' => Dumper :: fetchLiveData ( ) , 'time' => \ time ( ) , ] ; return '' ; } $ this -> renderTemplate ( $ exception , __DIR__ . '/assets/BlueScreen/page.phtml' ) ; return \ ob_get_clean ( ) ; }
Renders blue screen.

@param \Throwable $exception

@return string
Renders blue screen .