Class: HtmlDebugPanel
Full name: Clarity\Debug\HtmlDebugPanel
Collects DebugEvents and renders a floating HTML panel, fixed to the bottom-right corner of the page.
The engine adds the panel when debug mode is enabled with setDebugMode(new DumpOptions(showPanel: true)). Alternatively, subscribe it to a DebugEventBus yourself and call getHtml() after rendering.
Public methods
__construct() ·
public function __construct(): mixed
Return value
- Type:
mixed
onEvent() ·
public function onEvent(Clarity\Debug\DebugEvent $event): void
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$event |
DebugEvent | - |
Return value
- Type:
void
getHtml() ·
public function getHtml(): string
Return value
- Type:
string