The integrated debugger assists in debugging applets and applications running in the IDE. It is a live debugger: it always shows the exact current state of running programs.
The integrated debugger browser displays the following information:
From the debugger, you can launch Inspectors to look at and modify variable values for suspended threads, Watches to evaluate expressions as you step through a program, and an Evaluation window where you can evaluate an expression during debugging.
You can open the debugger manually while a program is running to inspect threads and variables. As well, the debugger will automatically open, with the current thread suspended, for any of several reasons:
Once the debugger is open and a thread is suspended you can work with the program in the following ways:
Using the debugger, you can optionally generate and view the class loading and initialization trace.
Debugging with the stand-alone debugger
Opening the debugger manually
Suspending, resuming, and terminating threads
Setting breakpoints in source code
Configuring and setting conditions on breakpoints
Setting breakpoints in external classes
Selecting exceptions for the debugger to catch
Clearing and disabling breakpoints
Inspecting and modifying variable values
Stepping through methods
Modifying code while debugging
Evaluating expressions in the debugger
Watching an expression's value as you step
Generating the class trace
Setting debugger options