About the Debugger Windows

You can display the following debugger windows by choosing the View | Debug Windows | <name of window> command from the main menu.

Breakpoints Window

Displays the breakpoints for the current workspace and project.

Smart Data Window

Displays the data which is being used in the code that you are stepping through.

Data Window

Displays the arguments and local variables for the current context.
Note: The Include Debug Information check box must be selected in T ools | ProjectProperties - Compiler.

Watches Window

Displays the values for a watched program. A watch evaluates an expression according to the current context. If you move to a new context, the expression is reevaluated for the new context.

Inspector Window

Inspect a single data item in its own floating window. An inspector evaluates an expression according to the current context.

Stack Window

Displays the call stack for the current thread.

Classes Window

Displays information about the classes which have been loaded as your application runs, including the name and package of each class. If you are using OJVM for debugging, the debugger can also display the number of live instances of each class and the amount of memory being consumed by those instances.

Heap Window

Displays information about live objects in the Java heap for the program you are debugging. Class folders display all instances of a class and Reference Path folders show you why an object has not been garbage collected. From the Heap window, you can see the heap address for each instance of a given class, as well as determine which other objects are holding references to those instances. This is important when looking for memory leaks; instances being referenced by other objects do not not get garbage collected. The Heap window is only available when you debug with the Oracle Java Virtual Machine (OJVM) which is set in the Project Properties - Runner page.

Monitors Window

Displays information for active monitors in your application, as well as information about the status of threads accessing those monitors. This window is useful for examining deadlocks and other thread synchronization problems. Not all Java Virtual Machines allow the debugger to show information about monitors. For example, OJVM and Sun's Classic JVM have support for debugging monitor information, but Sun's HotSpot JVM does not.

Threads Window

Displays the threads and the thread groups, highlights the current thread, and shows the name, status, priority, and group of each thread.

You can control what type of information is displayed in each of the debugger windows. To see what options are available in each window such as which columns to display, right-click in a window and choose Settings from the context menu. Or, you can choose Tools | Preferences from the main menu and expand the Debugger node to display a preferences page for each debugger window. You can also save the debug information to either a text or HTML output file. See Exporting Debug Information to File.

For more information, select the debugger window to make it active and press F1 to display its Help topic.


Related topics

About Breakpoints
About the Smart Data Window

About the Data Window

About the Watches Window
About the Inspector Window
About the Stack Window
About the Classes Window
About the Heap Window
About the Monitors Window
About the Threads Window
Configuring Your Project for Debugging
Debugging a Project in JDeveloper
Using the Code Editor When Debugging
Examining Program State in Debugger Windows

 

Copyright © 1997, 2004, Oracle. All rights reserved.