Previous Topic: Programmed Breakpoints UsageNext Topic: Declare a Programmed Breakpoint in a PL/I Program


Programmed Breakpoints Coding

To execute a programmed breakpoint, add a special CALL statement to the program source code at the location where you want the breakpoint to occur. The CALL statement passes control to an entry point named PBP. Code the CALL statement according to the rules of the programming language being used. It also passes a number of arguments or parameters. Include a literal that describes the location of the programmed breakpoint as the first parameter so that the user, especially the PL/I user, identifies the breakpoint easily.

When control comes to the program location where the programmed breakpoint should occur, CA InterTest for CICS executes the programmed breakpoint just like an automatic breakpoint, except that in the data portion of the display 16 bytes of the first three passed parameters are automatically displayed. In addition, a CORE command keyword is provided to display the parameters.

The small Assembler programmed breakpoint load module, which is identical for all programming languages, must be prepared by your systems programmer and assembled and link‑edited into the proper language library so that it is automatically included in your module as a result of the CALL. The program follows:

PBP	CSECT
	SR 	15,15
	BR 	14
	DC 	C'PBPINTERTEST'
	END	PBP