Debugger: Get Call Stack
debugger_get_callstackRetrieve call-stack frames (function, file, line) for the halted thread to inspect the current execution state. Optionally specify a thread index.
Instructions
Return the call-stack frames (function, file, line — top frame first) for the halted thread. Requires the target to be HALTED. Optional threadIndex (default the stopped/primary thread). A frame index from here feeds stackFrameIndex in debugger_get_variables / debugger_evaluate.
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). |