ClassDebugger & Diagnostics@public
FlxDebugger
DOM overlay debugger with Console, Log, Watch, Perf, VCR, and Vis panels. Mounts as a fixed bottom bar. Fully keyboard/screen-reader accessible.
ts
export declare class FlxDebuggerConstructors
ts
constructor(options?: FlxDebuggerOptions)Constructs a new instance of the FlxDebugger class
| Parameter | Type | Description |
|---|---|---|
options | FlxDebuggerOptions | - |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
console | readonly | FlxConsole | - |
diagnostics | readonly | FlxDiagnostics | - |
visible | readonly | boolean | - |
Methods
captureDiagnostics()
ts
captureDiagnostics(): FlxDebuggerDiagnosticSnapshotReturns: FlxDebuggerDiagnosticSnapshot
destroy()
ts
destroy(): voidReturns: void
exportDiagnostics()
ts
exportDiagnostics(pretty?: boolean): stringParameters:
| Parameter | Type | Description |
|---|---|---|
pretty | boolean | - |
Returns: string
hide()
ts
hide(): voidReturns: void
setVCRCallbacks()
ts
setVCRCallbacks(callbacks: FlxDebuggerVCRCallbacks): voidWire up VCR panel callbacks.
Parameters:
| Parameter | Type | Description |
|---|---|---|
callbacks | FlxDebuggerVCRCallbacks | - |
Returns: void
show()
ts
show(): voidReturns: void
subscribeToChannel()
ts
subscribeToChannel(channel: DebugChannel, log: FlxLog, watch: FlxWatch): voidSubscribe to a DebugChannel to receive step-complete, log, and watch events.
Parameters:
| Parameter | Type | Description |
|---|---|---|
channel | DebugChannel | - |
log | FlxLog | - |
watch | FlxWatch | - |
Returns: void
toggle()
ts
toggle(): voidReturns: void