To set conditional breakpoints, specify the location and then the condition. Following these steps, specify one or more locations directly from the Source Listing.
Note: You can specify more than one c before pressing Enter.
Another way of specifying the same condition for multiple locations in your program is to use the ITST menus to specify both the locations and the conditions. For details, see Set Conditional Breakpoints from the Menus later in this chapter.
To set conditional breakpoints that apply to multiple locations in a program, follow these steps:
Note: For more information on completing this screen, see Set Conditional Breakpoints from the Menus.
The For Location field indicates the statement number with the source code at which you specified c on the Source Listing display. Typing an S in the drop monitoring on a true condition field causes monitoring to be dropped for the rest of the current task when the conditional breakpoint is true.
Note: The For Location field does not display when you specify the location using the menus.
Press Enter after completing the Conditional Breakpoint menu. CA InterTest for CICS sets the conditional breakpoints and returns you to the Source Listing display.
Notes:
Conditional breakpoints are set from the same Monitoring submenus used to set monitoring and unconditional breakpoints. Follow the same steps given in Set Conditional Breakpoints from the Menus. However, instead of entering s next to the UBP option, enter s next to the CBP option for conditional breakpoints.
Setting Conditional Breakpoints for COBDEMO, monitored for BARNEY1
First, CA InterTest for CICS displays the Conditional Locations screen.
This screen is similar to the screen used to specify unconditional breakpoints, and you should enter the information in the same way. For details, see Set Unconditional Breakpoints from the Menus later in this chapter.
One special feature lets you set a conditional breakpoint at all instructions. Enter an x in the All Instructions field to request this option, as shown in the previous example. If you request the All Instructions option and set a variable‑change breakpoint, the breakpoint takes effect whenever the value of the variable changes.
After specifying the breakpoint locations, press Enter to display the Conditional Breakpoint screen. On this screen specify the condition that must be satisfied for the breakpoint to take effect.
There are two versions of the Conditional Breakpoint screen: a simplified version for COBOL users, and a detailed version for PL/I and Assembler users and for those COBOL users who prefer this version. Using either version you specify the condition in this format:
left side relational operator right side
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|