BlueScreen
class BlueScreen
Renders a beautiful error/exception page with syntax-highlighted stack trace.
Constants
| private MaxMessageLength |
|
Properties
| string[] | $info | ||
| string[] | $collapsePaths | ||
| $maxDepth | |||
| $maxLength | |||
| $maxItems | |||
| $scrubber | |||
| string[] | $keysToHide | ||
| $showEnvironment |
Methods
No description
Add custom panel.
Add action.
Add new file generator.
No description
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.
Should a file be collapsed in stack trace?
Details
at line 58
__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 126
void
renderToAjax(Throwable $exception, DeferredContent $defer)
| internal |
No description
at line 135
bool
renderToFile(Throwable $exception, string $file)
Renders blue screen to file (if file exists, it will not be overwritten).
at line 321
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 349
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 358
static string
highlightLine(string $html, int $line, int $lines = 15, int $column = 0)
Returns highlighted line in already-tokenized HTML code.
at line 368
bool
isCollapsed(string $file)
| internal |
Should a file be collapsed in stack trace?
at line 386
Closure
getDumper()
| internal |
No description
at line 400
string
formatMessage(Throwable $exception)
No description