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
new ProbeVariables(): ProbeVariables;Defined in: node_modules/@lit/reactive-element/development/reactive-element.d.ts:527
Returns
ProbeVariables
Inherited from
LitElement.constructorProperties
| Property | Type | Default value | Description | Defined in |
|---|---|---|---|---|
debugger | Debugger | null | null | The debugger whose variables are shown. | packages/ui/src/variables.ts:60 |
frame | Frame | null | null | The 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()
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()
addWatch(expression): void;Defined in: packages/ui/src/variables.ts:180
Add a watch expression (a variable, static or register name).
Parameters
| Parameter | Type |
|---|---|
expression | string |
Returns
void