FeaturesPluginsDocs & SupportCommunityPartners

NetBeans IDE 6.1 Features

Debugger

NetBeans Debugger screenshot
Click image for fullscreen preview

Use the multi-language debugger to take snapshots of the application state during execution. Place breakpoints in your source code, add field watches, step through your code, run into methods, and monitor execution as it occurs. You can also connect the NetBeans debugger to an already-running process.

Expression Evaluation

Evaluate Java-syntax expressions assigned to watches and conditional breakpoints "live" while stepping through your code. You can even inspect partial results of expressions and step over individual expressions.

During a debugging session, you can evaluate any variable directly in the Source Editor by moving the pointer over the variable: The current value is displayed in a tool tip. The evaluation is performed according to the context given by the current thread.
expression evaluation

Expression Stepping

You can easily step over individual expressions within a statement. The debugger will display the return value from each expression.

Configurable Breakpoints

In addition to the standard line and method breakpoints, the NetBeans debugger provides advanced Class, Thread, Exception, and Variable breakpoints. Configure these custom breakpoints to be triggered by conditions and events such as uncaught exceptions, class loading, or variable access.

debugger breakpoints

Multi-Session and Multi-Threaded Debugging

You can debug several processes at the same time: Browse the list of the currently running debugging sessions in the Sessions view of the Debugger window.

If you debug several threads, check the state of your current session's threads in the Threads view in the Debugger window. Inspect the call stack and locale variables of the current thread in the Call Stack and Local Variables views.

Change or suspend a thread if you think it is causing problems, and resume the thread later, once the problem is solved.

interrupting and resuming debugger threads

HeapWalker

Use the HeapWalker to watch references to objects while debugging a program. The Instances pane shows all instances of a type, while the Fields pane shows its structure. The References pane shows the references to the selected instance.

debugger heap walker

 

- Java SE And Base IDE Learning Trail

Companion
Projects:
MySQL Database Server   Open JDK: an Open SourceJDK   GlassFish Community: an Open Source Application Server    Mobile & Embedded Community    Open Solaris   java.net - The Source for Java Technology Collaboration   Open ESB - The Open Enterprise Service Bus Powered by