Skip to content

Breakpoints

The debugger must reach a line with a breakpoint in order to pause the program (or even switch to the Debug perspective).

Adding and Removing Breakpoints

To add or remove a breakpoint, double-click in the gutter next to the class's line numbers. * You can do this on statements only, not comments or empty lines.

Adding a breakpoint

Running the Program

Select Debug As->Java Application to start the program.

When the program stops at a breakpoint, the line is highlighted.

The style of the breakpoint tells you what the debugger will do upon reaching it.

Running with breakpoints

A disabled breakpoint will not pause the program.


Prev -- Up -- Next