Debugger: Wait for Stop
debugger_wait_for_stopBlock until a Roku debug session halts at a breakpoint, step, or error, then retrieve top-frame stack and variables. Returns a timeout if still running.
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).
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). |