Allow users to pause execution at specific instruction indices in both the GUI and curses visualizers.
- GUI visualizer (
compiler/vm_visualizer.py) - Curses visualizer (
compiler/vm_visualizer_headless.py) - No VM/bytecode changes
- Toggle breakpoint at the current PC using
b. - Auto-run pauses before executing a breakpointed instruction.
- Breakpoints are indicated inline in the instruction list with a
Bmarker.
- Track breakpoint indices in each visualizer instance.
- Add key handling to toggle the breakpoint at the current PC.
- When auto-running, pause if the current PC is a breakpoint.
- Render instruction rows with a
Bmarker for breakpoints.
- Breakpoints can be set/cleared with
b. - Auto-run halts at a breakpoint before executing it.
- Breakpoints are visible in the instruction list.