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:

  1. Click on the line on which you want to set the breakpoint.
  2. Select Source from the main menu bar.
  3. 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:

  1. Select Source from the main menu bar.
  2. 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.
  3. 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:



Enable the Annotation Column