NetBeans IDE Field Guide(c) Developing Desktop, Web, Enterprise, and Mobile Applications
NETBEANS IDE PROVIDES A RICH ENVIRONMENT for troubleshooting and optimizing your applications. Built-in debugging support allows you to step through your code incrementally and monitor aspects of the running application, such as values of variables, the current sequence of method calls, the status of different threads, and the creation of objects. When using the IDE's debugger, there is no reason for you to litter your code with System.out.println statements to diagnose any problems that occur in your application. Instead, you can use the debugger to designate points of interest in your code with breakpoints (which are stored in the IDE, not in your code), pause your program at those breakpoints, and use the various debugging windows to evaluate the state of the running program. In addition, you can change code while debugging and dynamically reload the class in the debugger without having to restart the debugging session. Following are some of the things that you can do within the IDE's debugger:
To analyze the performance of your application in more detail, use the IDE's profiler, described in Chapter 15. |