Lahey/Fujitsu Fortran

Setting and Deleting Breakpoints

Setting a Breakpoint

You can stop program execution at any point by setting a breakpoint, allowing the status of variables and registers to be examined. A breakpoint can only be set on an executable line of code; it cannot be set at a comment or variable declaration, for example.

Start the program to be debugged and set the breakpoint when debugging enters start status. To set a breakpoint at a line, position the mouse pointer on the line number in the source program and click the left mouse button.

A breakpoint can also be set as follows:

  1. Press the 'Breakpoints' toolbutton or select the 'Breakpoints' command from the Debug menu to display the Breakpoints dialog box (see the figure below).
  2. In the 'Line:' field in the Breakpoints dialog box, specify the line number for which the breakpoint is to be set.
  3. Click the Add button.
  4. Check that the line number appears in the breakpoint list; then click the OK button.
  5. The above step displays the breakpoint (flag) in the displayed source program. To set the breakpoint for another line number, repeat steps (2) and (3).

Releasing Breakpoints

To delete a breakpoint at a line, position the pointer on the line number in the source program (indicated with a flag) and click the left button.

A breakpoint can also be deleted as follows:

  1. Press the 'Breakpoints' toolbutton or select the 'Breakpoints' command from the Debug menu to display the Breakpoints dialog box.
  2. In the 'Breakpoints List:' field in the Breakpoints dialog box, click the line number to be deleted.
  3. 3. Click the Delete button, then the OK button.

All breakpoints can be deleted as follows:

  1. Press the 'Breakpoints' toolbutton or select the 'Breakpoints' command from the Debug menu to display the Breakpoints dialog box.
  2. Click the 'Clear' button in the Breakpoints dialog box, then click the OK button.