Skip to content

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. detail is 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.constructor

Properties

PropertyTypeDefault valueDescriptionDefined in
debuggerDebugger | nullnullThe debugger to control; the buttons are disabled without one.packages/ui/src/core-controls.ts:83