Debugger: Set Breakpoints
debugger_set_breakpointsAdd breakpoints to BrightScript source files with optional conditions and hit counts for debugging Roku channels.
Instructions
Add breakpoints. breakpoints: array of { path, line, condition?, hitCount? } — path is a pkg:/… source path (a bare path is prefixed with pkg:/), condition is an optional BrightScript expression (Roku OS 11.5+), hitCount skips that many hits first. IMPORTANT: the device only registers breakpoints while HALTED — one added while the channel is running comes back pending:true and is queued to register at the next stop. Each result carries a breakpointId (registered) or an error. Existing conditions are replaced on re-add.
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. | |
| breakpoints | Yes | Breakpoints to set. |