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.

addAction(callable $action)

Add action.

void
render(Exception|Throwable $exception)

Renders blue screen.

void
renderToFile(Exception|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 = null)

Returns syntax highlighted source code.

static string
highlightPhp(string $source, int $line, int $lines = 15, array $vars = null)

Returns syntax highlighted source code.

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

Returns highlighted line in HTML code.

bool
isCollapsed(string $file)

Should a file be collapsed in stack trace?

Details

at line 38
__construct()

No description

at line 51
BlueScreen addPanel(callable $panel)

Add custom panel.

Parameters

callable $panel

Return Value

BlueScreen

at line 65
BlueScreen addAction(callable $action)

Add action.

Parameters

callable $action

Return Value

BlueScreen

at line 77
void render(Exception|Throwable $exception)

Renders blue screen.

Parameters

Exception|Throwable $exception

Return Value

void

at line 97
void renderToFile(Exception|Throwable $exception, string $file)

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

Parameters

Exception|Throwable $exception
string $file

file path

Return Value

void

at line 248
static string|null highlightFile(string $file, int $line, int $lines = 15, array $vars = null)

Returns syntax highlighted source code.

Parameters

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

Return Value

string|null

at line 268
static string highlightPhp(string $source, int $line, int $lines = 15, array $vars = null)

Returns syntax highlighted source code.

Parameters

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

Return Value

string

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

Returns highlighted line in HTML code.

Parameters

$html
$line
$lines

Return Value

string

at line 348
bool isCollapsed(string $file)

Should a file be collapsed in stack trace?

Parameters

string $file

Return Value

bool