Debugger: Get Variables
debugger_get_variablesGet variables in scope at a halted stack frame, including locals and m; drill into containers by passing a variablePath for nested values.
Instructions
Return variables in scope at a stack frame while HALTED. With no variablePath, returns the frame's locals (incl. m); each entry has name, type, value, and for containers a childCount. To drill into a container, pass its variablePath (e.g. ["m","top"]; a quoted "key" segment forces a case-sensitive AA lookup, a bare number indexes an array) — the response is [container] whose .children is the next level. Optional stackFrameIndex (default 0 = top) and threadIndex.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Optional. Roku IP or serial; must match a connected Dev Studio tab. Omit to use the focused tab. | |
| threadIndex | No | Optional thread index (default the stopped/primary thread). | |
| variablePath | No | Optional path segments to drill into a container (e.g. ["m","top","count"]). Omit for the frame's locals. | |
| stackFrameIndex | No | Stack frame to read (default 0 = top frame). |