Examining Variables

You can examine any of the variables in your program when you pause the program and switch to debug mode. If a variable contains an incorrect value, you can change the value and then continue running your program with the new value in place.

You can see values of local variables only if the class is compiled with the -g option. If you compile your program using the IDE's external compiler, this option is on by default. You can verify this setting by opening the Options window and expanding Building and expanding Compiler Types. Then select External Compilation and view the value for the Debug property.

For step-by-step instructions, see:

Viewing the Value of a Variable
Modifying the Value of a Variable
Watching the Value of a Variable or Expression
Creating a Fixed Watch
Deleting a Watch

Legal Notices