Run on the bench and debug
Keep a board running in real time, stop at breakpoints, step, and watch variables and registers.
Run on Bench#
Run simulates a fixed stretch of time and shows the result. Run on Bench, in the Code window, keeps the circuit running in step with the clock, the way a board on your desk does: LEDs blink on the schematic, the serial monitor takes what you type, and keypad keys and sliders act at once.
- Pause stops time; Continue carries on; Stop ends the bench.
- Editing the circuit or the program restarts it. Flipping a switch, moving a slider, pressing a key or typing doesn’t: the program carries on.
Breakpoints#
- In a sketch, click a line number to set a breakpoint; click again to remove it. For firmware, type an address (such as 0x0100) or a function name under Breakpoints in the Firmware pane.
- Run on the bench. When the program reaches the line, everything stops and the line is shaded green.
- Click Step to run one line (one instruction of firmware), or Continue to carry on.
Breakpoints only stop the bench; a plain Run ignores them. Turn off Stop at Breakpoints in the debugger to run past them; the change applies the next time the bench starts.
The debugger#
Click Debugger in the Code window’s toolbar. It shows:
- Program: running or stopped, the location, cycles, time and why it stopped (Breakpoint on line 12, Stepped, The program finished).
- Watch: type a variable or register in Add Watch. Control-click a watch to remove it.
- Variables, and for firmware the chip’s Registers, Memory and Instructions.
Applies to Coppa 0.1 Preview 14. Last updated 22 November 2026.