Debugger: Get Call Stack
debugger_get_callstackRetrieve the call stack frames (function, file, line) for a halted thread. Specify an optional thread index to inspect a different thread; defaults to the primary stopped thread.
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). |