Even though you can view your program by running and stepping through it, you usually need to examine the values of program variables to uncover bugs. For example, it is helpful to know the value of the index variable as you step though a loop, or the values of the parameters passed in a method call. When your program is paused in the debugger, you can examine the values of variables, arguments, fields, and array items.
To learn more about how to examine program state in debugger windows, see:
Related topics
Using the Debugger Windows
Setting Preferences for the Debugger Windows
Copyright © 1997, 2004, Oracle. All rights reserved.