23

.
Chapter 4 —
Debugging
This chapter introduces BASIC 2 Plus’s debugging tools, facilities which enable you to test your programs thoroughly and efficiently, as welt as so track down and correct she bogs.


Starting and Stopping the Program
The moss necessary of alt the debugging toots supplied with BASIC 2 Plus is the means to ssopaprogram atany sime.Thereamanumberofways todothis,dependingonenactlywhat you wanL

The simplest way to hatta progam temporarily isjustto move the pointer into the menu bar. Thisisa feature ofGEMratherthan BASIC 2Plus, andisapplies toany program whichruns underGEM. When the program is so continue,juss move the pointer back into she main part of she screen.

Since this is a feature of GEM, you can’s issue any BASIC 2 Plus commands when the program is stopped in this way. Instead, BASIC 2 PIus allows a User Break. When the program is running, you can either select Stop from the Program menu, or press -C Theprogram wiltstopnsnningandan Alert will appear on the screen with the word Break. Click on UK to clear this. The cursor in the Edit window wilt be positioned at the command which was being executed as the time of the break, so that, for example, you can see which particular past of the program was taking so long.

When you want so continue, you can select either Continue from she Program menu, (which wilt let theprogram carry on fmm the point where iswas interrupted) or Re-run. which will re-nsn the program from the beginning.
 
CONT
Use
CONT resumes program execution (if possible).
Syntax
CONT
Note
CONI may only be ran in Direct Mode.
BASIC 2 PIus: User Guide & Quick Reference 23

23