The debug windows provide information about values and conditions in your code while you're running it in the debugger.
To view one of the debug windows, choose Debug Windows from the View menu, and select the desired window.
The Locals window automatically shows variables that are in scope as you execute your code in the debugger. You can modify the value of a primitive-type variable here while you are debugging.
You can expand entries for objects in the Locals window to view their members.
Some variable types have multiple views available in the Locals window. A small list of examples include:
To determine what other views are available and to switch to a different view, simply right-click on either the variable's name or value in the Locals window and look in the View As context menu. Note that the default view of internal data structures will be the only view available for some types.
You can use the Watch window to observe how the value of a particular variable changes as you're debugging. To set a watch, simply type the name of the variable into the Watch window.
Static classes must be fully qualified to be viewed in the Watch window.
The Stream Window is only active when doing JSP debugging and shows the output stream that the JSP is generating to send back to the Browser
The Immediate window allows you to execute arbitrary code while debugging, with the following restrictions:
The call stack shows the methods that have been called in order to reach the point at which execution is halted in the debugger. The methods are listed from most recently called to first called. You can also think in terms of each call being nested within the method below it on the call stack.
You can click on a method in the call stack to navigate to that method in Source View. This will also show the local variables available for that call stack, and reevaluate any watches within selected stack frame as well.
The Threads window shows information about the currently executing threads. You can click on stack frames to navigate to that method and refresh the Local and Watch windows in that stack frame. If you switch the selected thread and then use any of the step commands, you will step in that thread.
The Breakpoints window lists the breakpoints that are currently set in your code by line number as well as the exception and method breakpoints. You can specify conditions under which each breakpoint should be hit in the Conditions column. You may also enable and disable individual breakpoints by using the checkboxes.