BlueScreen
class BlueScreen
Renders a beautiful error/exception page with syntax-highlighted stack trace.
Constants
| private MaxMessageLength |
|
Properties
| string[] | $info | ||
| string[] deprecated | $collapsePaths | ||
| $maxDepth | |||
| $maxLength | |||
| $maxItems | |||
| $scrubber | |||
| string[] | $keysToHide | ||
| $showEnvironment |
Methods
No description
Add custom panel.
Add action.
Add new file generator.
No description
Captures blue screen as plain text (markdown).
Renders blue screen to file (if file exists, it will not be overwritten).
Returns syntax highlighted snippet from a file, or null if the file cannot be read.
Returns syntax highlighted PHP source code with the given line emphasized.
Returns highlighted line in already-tokenized HTML code.
Returns the exception's stack trace with Tracy-internal handler frames stripped, together with the index of the frame that should be expanded by default (or null).
No description
Details
at line 61
__construct()
No description
at line 72
BlueScreen
addPanel(callable $panel)
Add custom panel.
at line 87
BlueScreen
addAction(callable $action)
Add action.
at line 98
BlueScreen
addFileGenerator(callable $generator)
Add new file generator.
at line 105
BlueScreen
addFiber(Fiber|Generator $fiber)
No description
at line 115
void
render(Throwable $exception)
Renders blue screen.
at line 129
string
renderAgent(Throwable $exception, array|null $logLocation = null)
Captures blue screen as plain text (markdown).
at line 136
void
renderToAjax(Throwable $exception, DeferredContent $defer)
| internal |
No description
at line 149
bool
renderToFile(Throwable $exception, string $file, array|null $logLocation = null)
Renders blue screen to file (if file exists, it will not be overwritten).
at line 345
static string
getExceptionTitle(Throwable $exception)
| internal |
No description
at line 356
static string|null
highlightFile(string $file, int $line, int $lines = 15, bool $php = true, int $column = 0)
Returns syntax highlighted snippet from a file, or null if the file cannot be read.
at line 384
static string
highlightPhp(string $source, int $line, int $lines = 15, int $column = 0)
Returns syntax highlighted PHP source code with the given line emphasized.
at line 393
static string
highlightLine(string $html, int $line, int $lines = 15, int $column = 0)
Returns highlighted line in already-tokenized HTML code.
at line 404
bool
isCollapsed(string $file)
deprecated
deprecated
| internal |
Should a file be collapsed in stack trace?
at line 417
array
prepareStack(Throwable $ex)
| internal |
Returns the exception's stack trace with Tracy-internal handler frames stripped, together with the index of the frame that should be expanded by default (or null).
Strips top frames belonging to DevelopmentStrategy/ProductionStrategy and Debugger error/shutdown handlers.
at line 444
Closure
getDumper()
| internal |
No description
at line 459
Closure
getAgentDumper()
No description
at line 469
string
formatMessage(Throwable $exception)
No description