Setting breakpoints

About this task

The following information describes how to set line or statement breakpoints, entry breakpoints, source entry breakpoints, exception breakpoints, and other breakpoint types.

Set a line or statement breakpoint

About this task

Note: Line breakpoints are only supported in standard mode.
To set a line or statement breakpoint, perform one of the following steps:
  • When you debug, right-click the statement you want to stop at and select Add breakpoint > Line.
  • In the debugger editor, double-click in the margin area to the left of the line. Use this method to set or remove breakpoints.
  • In the Breakpoints view, right-click an empty area and select Add a breakpoint.

Set an entry breakpoint

About this task

To set an entry breakpoint, perform one of the following steps:
  • In the Modules view, right-click an entry point and select Set entry breakpoint.
  • In the Debug view, right-click the debug target or one of its threads or stack frames and then select Options > Stop At All Function Entries to stop at all entry points.
  • In the Outline view, right-click on the name of the entry point and select Toggle entry breakpoint. You cannot add any information such as conditional expressions when you add an entry breakpoint from the Outline view.
  • In the Breakpoints view, select Stop At All Function Entries.
  • In the Breakpoints view, select Add Breakpoint > Entry....
Note: For COBOL V4 and V5 applications compiled with the TEST option, you can add breakpoints for performed paragraphs as entry breakpoints. However, if you click Stop At All Function Entries, the applications will stop at function entries instead of the paragraph entries.

Set a source entry breakpoint

About this task

To set a source entry breakpoint, performing one of the following steps:
  • When you edit COBOL in the COBOL Editor or the System z® LPEX Editor, perform one of the following steps:
    • Right-click the left edit ruler and select Toggle Paragraph Breakpoint.
    • From the outline view, select a paragraph. Right-click the paragraph and select Toggle Breakpoint.
  • When you edit PL/I in the PL/I Editor or the System z LPEX Editor, perform one of the following steps:
    • Right-click the left edit ruler and select Toggle Procedure Breakpoint.
    • From the outline view, select a procedure. Right-click the procedure and select Toggle Breakpoint.

Set an event breakpoint

About this task

To set an event breakpoint, perform these steps:

Procedure

  1. In the Breakpoints view, click Manage Compiled Language Event breakpoints.
  2. In the Manage Event Breakpoints dialog, select the event type that you want the debugger to catch.

Set other breakpoint types

About this task

To set a source entry breakpoint, perform one of the following steps:

Procedure

  1. Right-click in the Breakpoints view and select Add Breakpoint from the menu. This will expand to a full menu of the supported breakpoint types.
  2. Select the breakpoint type that you want to set. When you use this wizard to set a breakpoint, you can specify optional breakpoint parameters and set conditional breakpoints.