EventCapture
API reference › Debug Core › Panel › Event › EventCapture
Bounds and sanitizes explicitly selected event diagnostics without inspecting arbitrary objects.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
context() static | Bounds and sanitizes the adapter-selected context fields. | EventCapture |
trace() static | Bounds and sanitizes the source frames observed when an event fired. | EventCapture |
Method details
Section titled “Method details”context()
Section titled “context() ”public static function context(array<string, string> $fields): array<string, string>Bounds and sanitizes the adapter-selected context fields.
Parameters
| Parameter | Type | Description |
|---|---|---|
$fields | array<string, | Adapter-selected fields only. |
Returns
array<string, string>: At most sixteen sanitized fields, with sensitive values replaced by [redacted].
trace()
Section titled “trace() ”public static function trace(list<array<string, mixed>> $frames, int $limit, list<string> $skipFiles = []): list<string>Bounds and sanitizes the source frames observed when an event fired.
Parameters
| Parameter | Type | Description |
|---|---|---|
$frames | list<array<string, | Backtrace acquired with DEBUG_BACKTRACE_IGNORE_ARGS. |
$limit | int | Maximum frames; hard-limited to sixteen. |
$skipFiles | list<string> | Adapter instrumentation files to omit. |
Returns
list<string>: Sanitized file:line frames in call order.