To launch a PL/I debug process using Wait for debuggable attachment

  1. 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);
  2. From the Solution Explorer, double-click the Properties entry in the PL/I project, and select the Debug tab.
  3. Set Launch to Wait for debuggable attachment.
  4. Set the Wait for debuggable attachment field to Wait for ID.
  5. In the ID field, type the name of the attachment identified in your program's PLITEST call.
  6. Save your changes.
  7. Click Debug > Start Debugging.

    The debugger now waits for and then attaches to the next program identified by ID you provided.

  8. Launch your program.

    The debugger begins debugging at the specified point.