Attaches the PL/I debugger to a set point in a program to be debugged.
CALL PLITEST(plitest_commands, plitest_debugger);
These examples show usage of PLITEST, assuming use of the -bigendian option when compiling.
Example 1:
DCL Debug_Commands char(1024) varying init('SHLIB MAINP.dll;ENV MAINP;BR TESTLAB;c'); DCL Display_Address char(100) varying init(''); DCL PLITEST_Flags fixed bin(31) init(1); CALL PLITEST(Debug_Commands, Display_Address, PLITEST_FLAGS);
Example 2:
call plitest('env MAINP;br START_DEBUG;c',"MYDISPLAY", 3);
Description
PLITEST is an API called from User programs that causes a debugger to start, attach to a user program, and execute a series of commands before giving control to the user. A PLITEST call is typically inserted in a user application where debugging is to start at a given point in the execution flow.
You can use PLITEST to debug PL/I programs running under CICS, or use the plitest parameter of the -optexec option to do the same. See Compiler Options and Debugging PL/I Programs Under CICS for more information.