Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The Debug Perspective includes several views specialized for debugging activities: a Debug view of running threads and, when suspended, their stack frames; Variables, Expressions , and Display views for exploring object state; and a Breakpoints view for managing a list of all breakpoints in your code.
After execution has stopped on a breakpoint, there are several options for resuming or terminating execution, or stepping through the program statement-by-statement.
The Variables view shows fields, local variables, and method parameters for the stack frame selected in the Debug view. The stack frame provides the execution context for these variables.
You can evaluate code snippets that display, inspect, or update program state. Pop-up windows may be used to display or inspect selected expressions within a Java editor during a debug session.
You can assign a Detail Formatter that defines a customized output string used to display values of any class during debugging. This formatter overrides a class's toString() method.
Hot Code Replace facilitates experimental development by allowing you to make changes to code in the midst of a debug session without restarting the Java VM.
The client/server design of the Java debugger allows you to launch a Java program from a computer on your network and debug it from Eclipse running on your workstation.