Using the Debugging Windows

Often you can find the cause of a problem by executing and analyzing portions of code. You might isolate a problem in a variable or property with an incorrect value, and then have to determine how and why that variable or property was assigned an incorrect value.

With the debugging windows, you can monitor the values of expressions and variables while stepping through the statements in your application.

There are four debugging windows used by the debugger: the Forms window, the Call Stack window, the Watch window and the Immediate window.

Window Description
Forms Window The Forms window displays code. You can select a form and the code will be displayed.
Call Stack Window Lists the procedure calls that have started but are not yet completed.
Watch Window Shows values for variable names.
Immediate Window The Immediate window displays information that results from debugging statements in your code, or that you request by typing commands directly into the window.