probe-web / @probe-web/ui / ProbeCoreControls
Class: ProbeCoreControls
Defined in: packages/ui/src/core-controls.ts:53
<probe-core-controls>: run control for one core — continue, pause, step (over / into / out / instruction), reset, reset-and-halt, vector catch — and the core's state, with the halt reason and PC when halted.
Like the other debugger panels it takes a Debugger (from session.debugger()) and follows its events; any number of panels can share one.
Fires
debug-error: A run-control command failed.detailis the error; the message is also shown in the panel.
Example
html
<probe-core-controls></probe-core-controls>
<probe-callstack></probe-callstack>
<probe-variables></probe-variables>ts
const d = session.debugger();
await d.loadDebugInfo(elf, 'firmware.elf');
for (const el of document.querySelectorAll('probe-core-controls, probe-callstack, probe-variables')) {
(el as ProbeCoreControls | ProbeCallstack | ProbeVariables).debugger = d;
}
const vars = document.querySelector('probe-variables')!;
document.querySelector('probe-callstack')!.addEventListener('frame-selected', (e) => {
vars.frame = (e as CustomEvent<Frame>).detail;
});Extends
LitElement
Constructors
Constructor
ts
new ProbeCoreControls(): ProbeCoreControls;Defined in: node_modules/@lit/reactive-element/development/reactive-element.d.ts:527
Returns
ProbeCoreControls
Inherited from
ts
LitElement.constructorProperties
| Property | Type | Default value | Description | Defined in |
|---|---|---|---|---|
debugger | Debugger | null | null | The debugger to control; the buttons are disabled without one. | packages/ui/src/core-controls.ts:83 |