class BlueScreen

Red BlueScreen.

Properties

string[] $info
string[] $collapsePaths
int $maxDepth
int $maxLength
string[] $keysToHide

Methods

__construct()

No description

addPanel(callable $panel)

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

addAction(callable $action)

Add action.

void
render(Throwable $exception)

Renders blue screen.

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, array $vars = [], array $keysToHide = [])

Returns syntax highlighted source code.

static string
highlightPhp(string $source, int $line, int $lines = 15, array $vars = [], array $keysToHide = [])

Returns syntax highlighted source code.

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

Returns highlighted line in HTML code.

bool
isCollapsed(string $file)

Should a file be collapsed in stack trace?

getDumper()

No description

Details

at line 43
__construct()

No description

at line 55
BlueScreen addPanel(callable $panel)

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

Parameters

callable $panel

Return Value

BlueScreen

at line 68
BlueScreen addAction(callable $action)

Add action.

Parameters

callable $action

Return Value

BlueScreen

at line 78
void render(Throwable $exception)

Renders blue screen.

Parameters

Throwable $exception

Return Value

void

at line 95
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 245
static string|null highlightFile(string $file, int $line, int $lines = 15, array $vars = [], array $keysToHide = [])

Returns syntax highlighted source code.

Parameters

string $file
int $line
int $lines
array $vars
array $keysToHide

Return Value

string|null

at line 262
static string highlightPhp(string $source, int $line, int $lines = 15, array $vars = [], array $keysToHide = [])

Returns syntax highlighted source code.

Parameters

string $source
int $line
int $lines
array $vars
array $keysToHide

Return Value

string

at line 300
static string highlightLine(string $html, int $line, int $lines = 15)

Returns highlighted line in HTML code.

Parameters

string $html
int $line
int $lines

Return Value

string

at line 343
bool isCollapsed(string $file)

Should a file be collapsed in stack trace?

Parameters

string $file

Return Value

bool

at line 356
Closure getDumper()

No description

Return Value

Closure