CodeWatch lets you specify debug initialization settings for individual programs in the control file called PLIDEBUG.DAT. This file is utilized by the PL/I runtime whenever a program is initialized under Enterprise Server. It is automatically created if it doesn't exist in the location pointed to by the PL/I Configuration directory setting in the Enterprise Server Administration PL/I tab. You can edit this file from Enterprise Developer to define the program name and how to start and initialize CodeWatch.
--- 0---|--- 10---|--- 20---|--- 30---|--- 40---|--- 50---|--- 60---|--- 70---|--- 80---|--- 90---| 123456789|123456789|123456789|123456789|123456789|123456789|123456789|123456789|123456789|123456789| TESTPGM1 N 0 SHLIB TESTPGM1.DLL;ENV TESTPGM;BR %ENTRY;BR %EXIT [DET;Q];C
This table outlines the values needed for each record in PLIDEBUG.DAT.
| Column(s) | Value | Description |
|---|---|---|
| 0 through 7 | <program name> | User program name (without file extension). For example: TESTPGM1 |
| 20 | Y/N (Yes/No) | Indicates whether to start the debugger when the program executes. Set to N to skip attaching the debugger. |
| 22 | 0/1 | The debugger flavor used to debug the entry. Values are:
|
| 24-nn | <text string> | Initial set of debugger commands to be issued by CodeWatch during start-up before control is given over to the user. |
For example:
TESTPGM1 N 0 SHLIB TESTPGM1.DLL;ENV TESTPGM;BR %ENTRY;BR %EXIT [DET;Q];C
TESTPGM2 N 1 SHLIB TESTPGM2.DLL;ENV TESTPGM;BR %ENTRY;BR %EXIT [DET;Q];C
To open the and edit the debug configuration file:
The Data Tools status bar shows the cursor's current column location. Changes are saved immediately to the file.
When you begin to enter the remaining values for the record, a message box asks you to confirm that you want to edit the record. Click OK. You can also turn the update warning off for the file in the message box.