- In your PL/I program, code a call to the built-in PLITEST subroutine, and provide the name of the attachment as a parameter
for the PLITEST subroutine. For example, the following PLITEST routine calls Program1, and specifies MYATTACH as the name
of the debuggable attachment:
call plitest('env Program1;br 4;br 5;c',"MYATTACH", 3);
- From the
Solution Explorer, double-click the
Properties entry in the PL/I project, and select the
Debug tab.
- Set
Launch to
Wait for debuggable attachment.
- Set the
Wait for debuggable attachment field to
Wait for ID.
- In the
ID field, type the name of the attachment identified in your program's PLITEST call.
- Save your changes.
- Click
Debug > Start Debugging.
The debugger now waits for and then attaches to the next program identified by
ID you provided.
- Launch your program.
The debugger begins debugging at the specified point.