BlueScreen
class BlueScreen
Red BlueScreen.
Constants
private MAX_MESSAGE_LENGTH |
|
Properties
string[] | $info | ||
string[] | $collapsePaths | ||
int | $maxDepth | ||
int | $maxLength | ||
string[] | $keysToHide | ||
bool | $showEnvironment |
Methods
__construct()
No description
addPanel(callable $panel)
Add custom panel as function (?\Throwable $e): ?array
addAction(callable $action)
Add action.
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?
Details
at line 48
__construct()
No description
at line 60
BlueScreen
addPanel(callable $panel)
Add custom panel as function (?\Throwable $e): ?array
at line 73
BlueScreen
addAction(callable $action)
Add action.
at line 83
void
render(Throwable $exception)
Renders blue screen.
at line 105
bool
renderToFile(Throwable $exception, string $file)
Renders blue screen to file (if file exists, it will not be overwritten).
at line 256
static string|null
highlightFile(string $file, int $line, int $lines = 15, array $vars = [], array $keysToHide = [])
Returns syntax highlighted source code.
at line 278
static string
highlightPhp(string $source, int $line, int $lines = 15, array $vars = [], array $keysToHide = [])
Returns syntax highlighted source code.
at line 321
static string
highlightLine(string $html, int $line, int $lines = 15)
Returns highlighted line in HTML code.
at line 365
bool
isCollapsed(string $file)
internal |
Should a file be collapsed in stack trace?
at line 379
Closure
getDumper()
internal |
No description