Set Breakpoints in Program Source Files
Breakpoints can only be set on lines that contain executable
statements.
To set a breakpoint on a line, do the following:
- Click on the line on which you want to set the
breakpoint.
- Select Source from the main menu bar.
- Select Set Breakpoint from the resulting
pull-down menu. A breakpoint is set on the chosen line.
If the Show Breakpoints option is
enabled, the first non-blank character on the line
changes to show a red or green background, indicating the
presence of a breakpoint.
You can choose to show or hide breakpoint settings in a file.
To do so, do the following:
- Select Source from the main menu bar.
- Select Hide Breakpoints from the
resulting pull-down menu to hide all breakpoints in the
file from view. The breakpoints themselves still exist,
but can't be seen.
- Select Show Breakpoints from the
resulting pull-down menu to show all breakpoints in the
file.
| Note: |
The Hide Breakpoints
and Show Breakpoints options
affect only background coloring of the first
non-blank character on the lines containing
breakpoints. If you have enabled the Annotation
Column, breakpoint settings are still shown in
the Annotation Column regardless of other options
settings. |
If you have enabled the Annotation Column, breakpoints can be
set by clicking in the annotation area of lines chosen for
breakpoints. Annotation Column behavior is as follows:
- The first-time single-click in the annotation area
changes the color of the annotation box to red,
indicating a breakpoint is set and active.
- Another single-click in the box changes the color of the
box to green, indicating that the breakpoint, while set,
is temporarily inactive.
- Subsequent single-clicks toggle the box from red to
green, activating or deactivating the breakpoint.
- A double-click clears the breakpoint.

Enable the Annotation Column