O'Reilly logo

NetBeans IDE 7 Cookbook by Rhawi Dantas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Debugging a class

It is possible to set breakpoints and watches in NetBeans and, on execution, check what the value of a given variable or object is.

NetBeans debugger also lets the developer follow method calls and execute code one line at a time giving a fine-grained visualization on how the code is running.

This is one of the features where NetBeans shines in comparison to other IDEs so without further ado, let's dive in. NetBeans has already included many of the plugins, performance tools, and servers that are used for easing the process of setup and debugging.

Getting ready

We will be using a Java Application Project for this example. Since we are just showcasing the capabilities of the debugger too, we won't be using anything complicated; ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required