Programs are listed on a pale background in the same format used by the editor, with the currently executing statement clearly highlighted in a different contrasting color, usually dark red. To make the workbench mode clear it is a good idea to use different scenes for the editor and debugger.
All the navigation and object functions of the editor are still available in debug mode. Note that the cursor statement is distinct from the currently executing statement indicated with reverse video. The cursor may rove about the entire program (and any global) without disturbing the current execution position.
Editing functions are not allowed in debug mode but if you do wish to alter the program then F9 will switch back to edit mode, though this will mean that the altered program can not be resumed without a RUN or RUN STOP. Provided the program is not changed while in edit mode it is possible to toggle between edit and debug modes with F9.
Since editing is not possible, normal keys can be used for most debug functions; generally these are mnemonic:
Key | Function |
---|---|
space | STEP OVER (do not enter subroutines; skip DIM, COM, REM) |
B | Toggle break/trap point |
C | CONTINUE |
F | FLIP (toggle to display execute window), also available on F4. |
G | GOTO CURSOR (set a temporary trap at cursor then continue) |
I | STEP INTO (HALT / STEP) |
L | CONTINUE LOAD |
N | CONTINUE NEXT |
O | CONTINUE LOOP |
R | CONTINUE RETURN |
S | SET PROGRAM AT CURSOR
(equivalent to immediate mode GOTO) |
T | Terminate Debugging, same as F9 |
U | Move PC up in the return stack. |
D | Move PC down in the return stack. |
Z | Move cursor to last line executed via a Step. Leave PC in current position. |