How to test your program with the Builder
To test your program
-
Press the Run button in the main Builder window. After a few seconds, your program will start running. You will be able to interact with your program's windows and buttons.
-
While your program is running, you may press the Pause button in the main Builder window to pause it. The Builder continues execution of the program when you press the Continue button.
If your program encounters any errors, it will pause, and an error dialog box will appear. If you press the error dialog box's OK button, the Editor window will appear, showing you the line of BASIC code that generated the error.
-
Monitor the program's behavior. While your program is running or paused, you will not be able to edit it. If you want to edit it (perhaps to fix a problem you have discovered while testing), you must stop the program.
-
To stop running your program, press the Stop button in the main Builder window.
For example, to test the program we've been working on in this section:
-
Press the Run button in the main Builder window. After a few seconds, your program should appear.
-
Press your program's Make Funky button. At this point, either your program's form's caption should change to Funky, or an error dialog box should appear.
-
If the form's caption changed to
Funky, then you're done.
-
If there was an error, then press OK in the error dialog box and then examine your BASIC code to find out what the problem was.
-
Once you've discovered the problem, press the Stop button and edit your program to fix it.
|
This is a fairly simple introduction to
debugging. You'll probably want more information about debugging as the programs you write get more complicated. For more information, see
See Debugging
.