Breakpoints in the IDE

See Also

A breakpoint is a flag in the source code that tells the debugger to stop execution of the program. When your program stops on a breakpoint, you can perform actions like examining the value of variables and single-stepping through your program.

The IDE enables you to set several types of breakpoints using the New Breakpoint dialog. You can also set line breakpoints directly in the Source Editor. Breakpoints can be set for the following types of source elements:

The Source Editor indicates a breakpoint by highlighting the line at which the breakpoint is set in red and placing an annotation in the left margin. The following table describes the debugging annotations.

Annotation Description
Breakpoint iconBreakpoint
Disabled breakpoint icon groupDisabled breakpoint
Multiple breakpoint icon iconMultiple breakpoints
Conditional breakpoint iconConditional breakpoint
Disabled conditional breakpoint icon groupDisabled conditional breakpoint
Program counter iconProgram counter
Program counter and one breakpoint icon Program counter and one breakpoint
Program counter and multiple breakpoints icon Program counter and multiple breakpoints
Call siteThe call site or place in the source code from which the current call on the call stack was made

You can view and organize all IDE breakpoints by choosing Windows > Debugging > Breakpoints (Alt-Shift-5).

See Also
Setting a Java Breakpoint
Organizing Breakpoints Into a Group
About Debugging Java Applications

Legal Notices