Getting Started
Introduction
Sample Programs
QBasic IDEs
History
Advice
Tools
Mini-Tutorial
Tutorial
Code Snippets

Resources
Web Sites
More Tutorials
Vendors
Books
Magazines
NewsLetters
NewsGroups
Forums
User Groups
Talk Shows
Blogs

GBIC >> QBasic >> Tutorial >> IDE (Editor) >> Debug Menu

QBasic Information Center Tutorials - IDE (Editor)
These tutorials were written to help you get a quick, but thorough, understanding of QBasic - the scope of the language as well as it's specific capabilities.

QBasic Editor
The QBasic editor is very simple, but contains enough capability to support creating programs of any size.

The startup screens for QBasic as shown below. For more information on the menu options, click on one of the following links.

For it's time, the menu option above were considered reasonably complete. However, today's language IDE's are considerably more complex.

Debug Menu
The Debug menu provides the following options. Keystroke shortcuts are shown in the image above.


  • Step - Executes the next line of code and then stops, highlighting the next line of code to be executed. The output at that point can be viewed by pressing F4.

  • Procedure Step - Same as Step, but if the next line of code is a procedure call, the execution of the statements within the procedure are all executed and QBAsic stops on the next line after procedure call.

  • Trace On - Highlights each line of code as it executes. When the line of code writes to the output screen, the output screen is briefly flashed. The execution speed is limited by QBasic so that the flow of the program can be seen.

  • Toggle Breakpoint - Marks (or unmarks) a line of code so that execution stops on that line (the line is not executed), just as though Ctrl-Break had been entered. One or all lines of code can be set as breakpoints.

  • Clear All Breakpoints - Removes all breakpoints in the program.

  • Set Next Statement - Sets the next line where execution will continue. Move the cursor to the desired line, then select this menu option.

If you have any suggestions or questions, please let me know.