Using the Data Window

You use the Data window to display information about variables in your program. The Data window displays the arguments, local variables, and static fields for the current context, which is controlled by the selection in the Stack window. If you move to a new context, the Data window is updated to show the data for the new context. If the current class was compiled without debug information, you will not be able to see the local variables. However, if you are debugging with the Oracle Java Virtual Machine (OJVM), the debugger analyzes the local variable memory locations in the stack frame to show you as much information as possible.

Create instance breakpoints from the context menu.

For more information about this window including its context menu options, press F1 or click Help in the Data window.

To open the Data window:

  1. Open source files in the Source Editor and set breakpoints.

  2. In the toolbar, click debug_toolbar_icon Debug.

  3. When the debugger pauses at a breakpoint, select View then choose Debug Windowsthen choose Data from the main menu.
    The Data window appears.

To change which columns are displayed in the Data window:


Related topics

Using the Debugger Windows
Setting Preferences for the Debugger Windows
Using the Smart Data Window
Using the Stack Window
Modifying Data Elements