Debug Project New and Noteworthy for 3.1M4


User defined logical structures

The Java debugger now allows users to define the structure shown in the variables view for different types of objects. For example, collections are displayed as arrays rather than revealing an internal imlpementation of fields. You can define expressions on the Logical Structures preference page to generate the values displayed in the variables view for specific classes and interfaces. You can provide one expression for an object (for example, this.toArray()), or you can define a list of {name, value} pairs.

Dialog to edit java logical structure


Enhanced variable value modification

The Java debugger now allows changing the value of primitive and non-primitive variables. A variable's value can be changed by entering an expression into the Change Value dialog or into the details area of the variables view and using the Save action.

Dialog to edit an expression to replace the current value of a variable


Multiplexing console output

A program's output can be written to the console, a file, both, or neither via settings on the Common tab.


Multiple console views

More than one console view can be opened to display multiple consoles at once. Use the New Console View action from the Open Console drop-down menu in the console view to open another console.


Key-bindings for running/debugging

Key-bindings have been defined for launching Java applications, applets, JUnit tests, Ant builds, and the runtime workbench. The debug shortcuts are available via Alt-Shift-D, and the run shortcuts are available via Alt-Shift-X.

Formatting stack traces

The Java stack trace console now supports formatting of pasted stack traces via the standard Format key-binding.

Ant Debugger

The execution of Ant buildfiles can now be debugged. Traditional debug support such as stepping and breakpoints as well as "run to line" support is included. Debugging is supported when building in the same JRE as Eclipse and when building in a separate JRE.

Ant build file launched in debug mode