corner imagecorner image FeaturesPluginsDocs & SupportCommunityPartners
download NetBeans

NetBeans IDE 6.5 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.

Debugging Windownew!

The Debugging window integrates the Sessions, Threads and Call Stack views.

Each sessions is broken down in its list of threads, and you can expand each suspended thread to its call stack, etc. You can resume/suspend threads with one click on the play/pause buttons.

debugger window

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

Expression Evaluation

Evaluate Java-syntax expressions assigned to watches and conditional breakpoints "live" while stepping through your code. Moving the pointer over the variable and the current value is evaluated and displayed in a tool tip.

expression evaluation

Expression Steppingimproved!

You can easily step over individual expressions within a statement. The debugger will display the return value from each expression. The Step Into action (F7) lets you select the method call to step into if there is more than one possibility at the current line.

Multi-Session Debugging

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

Multi-Threaded Debuggingimproved!

To switch threads, use the Current Thread Chooser, or access the threads navigation directly from editor gutter. Check the state of the current session's threads in the Threads view in the Debugging window. Inspect the call stack and locale variables of the current thread in the Call Stack and Local Variables views. The Debugger automatically detects deadlock in suspended threads.

debugger deadlock detection

debugger: current thread chooser

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   GlassFish Community: an Open Source Application Server   Open Solaris  Open JDK: an Open SourceJDK   Mobile & Embedded Community     Sponsored by 
Sponsored by Sun Microsystems