Skip to content

probe-web / @probe-web/ui / ProbeVariables

Class: ProbeVariables

Defined in: packages/ui/src/variables.ts:39

<probe-variables>: scopes and variables of a frame (Variables, Static, Registers, Peripherals with an SVD), children loaded on expand, expansion kept across stops, leaf values editable (double-click), and watch expressions (probe-rs evaluates names, not arbitrary expressions). Set ProbeVariables.frame (e.g. from <probe-callstack>'s frame-selected); without it the first non-inlined frame of each stop is used.

Fires no events.

Extends

  • LitElement

Constructors

Constructor

ts
new ProbeVariables(): ProbeVariables;

Defined in: node_modules/@lit/reactive-element/development/reactive-element.d.ts:527

Returns

ProbeVariables

Inherited from

ts
LitElement.constructor

Properties

PropertyTypeDefault valueDescriptionDefined in
debuggerDebugger | nullnullThe debugger whose variables are shown.packages/ui/src/variables.ts:60
frameFrame | nullnullThe frame to show; reset to null at each stop, which means the first non-inlined frame. Setting it while halted refreshes the view.packages/ui/src/variables.ts:65

Methods

refresh()

ts
refresh(): Promise<void>;

Defined in: packages/ui/src/variables.ts:117

Reload scopes, expanded variables and watches for the current frame.

Returns

Promise<void>


addWatch()

ts
addWatch(expression): void;

Defined in: packages/ui/src/variables.ts:180

Add a watch expression (a variable, static or register name).

Parameters

ParameterType
expressionstring

Returns

void