BlueScreen
class BlueScreen
Red BlueScreen.
Constants
private MaxMessageLength |
|
Properties
string[] | $info | ||
string[] | $collapsePaths | ||
int | $maxDepth | ||
int | $maxLength | ||
int | $maxItems | ||
callable|null | $scrubber | ||
string[] | $keysToHide | ||
bool | $showEnvironment |
Methods
No description
Add custom panel as function (?\Throwable $e): ?array
Add action.
Add new file generator.
Renders blue screen to file (if file exists, it will not be overwritten).
Returns syntax highlighted source code.
Returns syntax highlighted source code.
Returns highlighted line in HTML code.
Returns syntax highlighted source code to Terminal.
Should a file be collapsed in stack trace?
No description
Details
at line 60
__construct()
No description
at line 74
BlueScreen
addPanel(callable $panel)
Add custom panel as function (?\Throwable $e): ?array
at line 88
BlueScreen
addAction(callable $action)
Add action.
at line 100
BlueScreen
addFileGenerator(callable $generator)
Add new file generator.
at line 111
BlueScreen
addFiber(Fiber|Generator $fiber)
No description
at line 121
void
render(Throwable $exception)
Renders blue screen.
at line 132
void
renderToAjax(Throwable $exception, DeferredContent $defer)
internal |
No description
at line 143
bool
renderToFile(Throwable $exception, string $file)
Renders blue screen to file (if file exists, it will not be overwritten).
at line 314
static string|null
highlightFile(string $file, int $line, int $lines = 15, bool $php = true, int $column = 0)
Returns syntax highlighted source code.
at line 341
static string
highlightPhp(string $source, int $line, int $lines = 15, int $column = 0)
Returns syntax highlighted source code.
at line 365
static string
highlightLine(string $html, int $line, int $lines = 15, int $column = 0)
Returns highlighted line in HTML code.
at line 419
static string|null
highlightPhpCli(string $file, int $line, int $lines = 15, int $column = 0)
Returns syntax highlighted source code to Terminal.
at line 461
bool
isCollapsed(string $file)
internal |
Should a file be collapsed in stack trace?
at line 476
Closure
getDumper()
internal |
No description
at line 492
string
formatMessage(Throwable $exception)
No description
at line 577
static string|null
generateNewPhpFileContents(string $file, string|null $class = null)
internal |
No description