Things You'll Need:
- Visual Basic 6.0 or Visual Basic Express
-
Step 1
Open the project you want to check with the Visual Basic program by clicking on "File" and then on "Open Project." Choose "Existing" and locate the file on your computer. The project should have an extension of .vbp for Visual Basic 6.0 or .vbproj for Visual Basic Express.
-
Step 2
Click on "View" followed by "Locals Window." Press "F8" to begin the debugging process.
-
Step 3
Follow any commands that require keyboard or mouse input when they pop up as part of one of the forms in your project, such as those asking for input.
-
Step 4
Press "F8" again when the debugging returns to the code window on a line highlighted in yellow. Review the information in the Locals window to see if it matches the values and type of data that you entered or that is called for at that point. You can also move your cursor back over the preceding line to check a value.
-
Step 5
Continue using the "F8" key to step all the way through your program. Insert breakpoints by pressing "F9" where you suspect problems may occur.
-
Step 6
Insert the Visual Basic word "Stop" on a new line at a point in the code where you get an error message so that you can temporarily halt the application and review the data steps leading up to the error.









