Set a Line Conditional Breakpoint
You can set line conditional breakpoints at executable statements in an active program listing.
Follow these steps:
-
Select Window, Show Views, CA InterTest™ Debug.
The CA InterTest™ Debug view opens. -
Double-click the program to which you want to add breakpoints.
The program opens in the Program Listing area.
Position the program by clicking PROCEDURE DIVISION in the Outline view.Note: If the Outline view is not visible on the CA InterTest™ main window, select Window, Show Views, Outline.
-
Right-click the ruler to the left of the statement, and then select Configure Breakpoint. If the statement is a comment or a programming structure element (for example Procedure Division) then the breakpoint will apply to the first valid statement PRIOR to the statement being selected.
The Add a Line Breakpoint dialog opens. -
Select the Conditional option to display the parameters for a conditional breakpoint.
Note: The conditional parameters section varies for batch and CICS projects. For more information on setting conditional breakpoints for a batch project, see Set a conditional breakpoint for a batch project. For more information on setting conditional breakpoints for a CICS project, see Set a conditional breakpoint for a CICS project.
-
Select a variable from the Left Side drop-down list.
-
Select an operator from the Operator drop-down list.
-
Enter a literal or select a variable or constant from the Right Side drop-down list.
-
Check the Stop after execution box if you want the condition to be evaluated after the statement is executed.
-
Click Finish to set the conditional breakpoint.
In the Program Listing area, a blue circle appears next to the statement in the left ruler. A dark-blue mark appears in the ruler to the right of the scroll bar. This indicates that a new breakpoint is set at the selected statement.
CA InterTest™ saves the changes and closes the dialog. After you add the breakpoint to your program, the Breakpoints views displays the details of the new breakpoint.