Debugger: Set Breakpoints
debugger_set_breakpointsSet BrightScript breakpoints on Roku by path and line, with optional conditions and hit counts; breakpoints register when the device halts.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"breakpoints": "<breakpoints>"
},
"name": "debugger_set_breakpoints"
}
}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. |