Breakpoints: Pausing in Routines

Sometimes, you'll want to pause execution at a precise point in a BASIC routine. To do this, set a breakpoint on the line where you'd like to pause execution. The pause will happen just before the line is executed.

Setting a breakpoint

To set a breakpoint in a line of BASIC code, view the appropriate routine in the Editor window and

Removing a breakpoint

To unset (remove) a breakpoint you set previously, do just what you would do to add a breakpoint:

The line of BASIC code, which was drawn with a red background when it had a breakpoint set on it, should now be drawn with a white background. (If execution is currently paused on this line, then turning off the breakpoint on that line will cause its background to go from purple to blue, not red to white.)

Running the code

Having set/unset your breakpoints, press the Continue or Run button. If execution ever encounters a line of BASIC code with a breakpoint set on it, it will pause immediately.