Debugger: Evaluate (REPL)
debugger_evaluateEvaluate a BrightScript expression in the halted debugger frame, outputting results to the console and reporting compile/runtime errors.
Instructions
Run a BrightScript expression/statement in the halted frame (the debug-console REPL) — e.g. print m.top.count or print type(node). Output streams to the device console; the result reports compile/runtime errors if any. Requires the target to be HALTED. Can have side effects (it executes code), so it is not read-only. For a plain variable read prefer debugger_get_variables. Optional stackFrameIndex / threadIndex select the scope.
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. | |
| expression | Yes | Required. BrightScript to run in the halted frame (often `print <expr>`). | |
| threadIndex | No | Optional thread index (default the stopped/primary thread). | |
| stackFrameIndex | No | Stack frame scope (default 0 = top frame). |