class BlueScreen

Red BlueScreen.

Constants

private MaxMessageLength

Properties

string[] $info
string[] $collapsePaths
$maxDepth
$maxLength
$maxItems
callable|null $scrubber
string[] $keysToHide
$showEnvironment

Methods

__construct()

No description

addPanel(callable $panel)

Add custom panel as function (?\Throwable $e): ?array

addAction(callable $action)

Add action.

addFileGenerator(callable $generator)

Add new file generator.

addFiber(Fiber|Generator $fiber)

No description

void
render(Throwable $exception)

Renders blue screen.

void
renderToAjax(Throwable $exception, DeferredContent $defer)

No description

bool
renderToFile(Throwable $exception, string $file)

Renders blue screen to file (if file exists, it will not be overwritten).

static string|null
highlightFile(string $file, int $line, int $lines = 15, bool $php = true, int $column = 0)

Returns syntax highlighted source code.

static string
highlightPhp(string $source, int $line, int $lines = 15, int $column = 0)

Returns syntax highlighted source code.

static string
highlightLine(string $html, int $line, int $lines = 15, int $column = 0)

Returns highlighted line in HTML code.

bool
isCollapsed(string $file)

Should a file be collapsed in stack trace?

getDumper()

No description

string
formatMessage(Throwable $exception)

No description

static string|null
generateNewPhpFileContents(string $file, string|null $class = null)

No description

array
getRealArgsAndVariables(Throwable $exception)

No description

Details

at line 53
__construct()

No description

at line 67
BlueScreen addPanel(callable $panel)

Add custom panel as function (?\Throwable $e): ?array

Parameters

callable $panel

Return Value

BlueScreen

at line 81
BlueScreen addAction(callable $action)

Add action.

Parameters

callable $action

Return Value

BlueScreen

at line 93
BlueScreen addFileGenerator(callable $generator)

Add new file generator.

Parameters

callable $generator

Return Value

BlueScreen

at line 100
BlueScreen addFiber(Fiber|Generator $fiber)

No description

Parameters

Fiber|Generator $fiber

Return Value

BlueScreen

at line 110
void render(Throwable $exception)

Renders blue screen.

Parameters

Throwable $exception

Return Value

void

at line 121
void renderToAjax(Throwable $exception, DeferredContent $defer)

internal  
 

No description

Parameters

Throwable $exception
DeferredContent $defer

Return Value

void

at line 130
bool renderToFile(Throwable $exception, string $file)

Renders blue screen to file (if file exists, it will not be overwritten).

Parameters

Throwable $exception
string $file

Return Value

bool

at line 301
static string|null highlightFile(string $file, int $line, int $lines = 15, bool $php = true, int $column = 0)

Returns syntax highlighted source code.

Parameters

string $file
int $line
int $lines
bool $php
int $column

Return Value

string|null

at line 329
static string highlightPhp(string $source, int $line, int $lines = 15, int $column = 0)

Returns syntax highlighted source code.

Parameters

string $source
int $line
int $lines
int $column

Return Value

string

at line 338
static string highlightLine(string $html, int $line, int $lines = 15, int $column = 0)

Returns highlighted line in HTML code.

Parameters

string $html
int $line
int $lines
int $column

Return Value

string

at line 348
bool isCollapsed(string $file)

internal  
 

Should a file be collapsed in stack trace?

Parameters

string $file

Return Value

bool

at line 363
Closure getDumper()

internal  
 

No description

Return Value

Closure

at line 377
string formatMessage(Throwable $exception)

No description

Parameters

Throwable $exception

Return Value

string

at line 460
static string|null generateNewPhpFileContents(string $file, string|null $class = null)

internal  
 

No description

Parameters

string $file
string|null $class

Return Value

string|null

at line 504
array getRealArgsAndVariables(Throwable $exception)

No description

Parameters

Throwable $exception

Return Value

array