Debugger: Wait for Stop
debugger_wait_for_stopWait for the Roku debugger to halt at a breakpoint, step, or error, then retrieve the top-frame snapshot with threads, stack frames, and variables. Use after continue/step to know when to inspect.
Instructions
Block (server-side poll) until the target HALTS at a breakpoint / STOP / step-completion / runtime error, then return { stopped: true, stop: { reason, detail, threads, stackFrames, variables } } — the top-frame snapshot. Returns { stopped: false, timedOut: true } if it is still running at the deadline, or { stopped:false, state } if the session ended. Call this right after debugger_continue / debugger_step, or after triggering the app, to know when you can inspect. Optional timeoutMs (default 15000, max 30000).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "debugger_wait_for_stop"
}
}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. | |
| timeoutMs | No | Max ms to wait (default 15000, capped at 30000). |