Setting breakpoints
About this task
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 .
- 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
- 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 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 .
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
- 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
Procedure
- In the Breakpoints view, click Manage Compiled Language Event breakpoints.
- In the Manage Event Breakpoints dialog, select the event type that you want the debugger to catch.
Set other breakpoint types
About this task
Procedure
- 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.
- 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.