Before you can debug an interactive CICS® program,
you must build the code with debug information; in particular, you
must compile with the TEST compiler option. Then you can proceed in
either of two ways:
- If you link the TEST runtime option into the load module, you
also specify the IP address of your workstation so that the address
is included in the program. You include this runtime information automatically
when you generate build JCL, but only if you set the following properties:
- Set Run in batch with the debugger on the
Runtime Options page
- Select the Use CICS check box in the COBOL
Settings page or the PL/I Settings page
If the debug daemon is listening in the workbench, a debug
session begins as you run the transaction that includes your program.
To avoid running the load module under a debugger, rebuild the load
module without debugging information and refresh the version of the
load module in the CICS region.
- If you did not link the TEST runtime option into the load module,
use the CICS DTCN transaction,
as shipped with the IBM® Debug
Tool. When you run DTCN, a panel is displayed for you to indicate
these items, among others:
- The name of a transaction that includes your program
- The IP address of your workstation
If the debug daemon is listening in the workbench, a debug
session is in effect as you run the named transaction from your workstation.
Later you can run the DTCN transaction again to exclude the named
transaction from debugging.