Debugging a Language Environment program using a remote debugger without Debug Manager
With the remote debugger in the Eclipse IDE, you can debug Enterprise COBOL, COBOL for MVS and VM, Enterprise PL/I, later versions of C/C++ and assembler. You can use IBM z/OS Debugger JCL Wizard to create JCL statements to debug a Language Environment program with the TCP/IP TEST parameter.
- In ISPF Edit or Browse, enter EQAJCL G1 to bypass the z/OS Debugger
JCL Wizard Option Selection panel, and request a debug session with the remote debugger.
Alternatively, enter EQAJCL to invoke the IBM z/OS Debugger JCL
Wizard and then select
G1.
- Obtain your IP address from your workstation:
- Start the Eclipse IDE.
- Open the Debug perspective.
- Click the arrow icon.
- Select Get Workstation IP from the list. More than one IP address might be shown.
- Select the IP address associated with your workstation. Right-click the workstation IP address, and copy this address for use by the IBM z/OS Debugger JCL Wizard.
- In the parameters panel, paste your IP address into the IP address field
and enter the port number. The port number is generally 8001.
Type YES in the LE Program field because this program is Language Environment enabled.
To select an optional parameter, specify a forward slash (/) in the field.
In this use case, At Entry and Automonitor on are selected. - Since you chose to set AT ENTRY breakpoints for subprograms, the Request AT ENTRY
Sub-Program Breakpoints panel is displayed. The subprograms SAM2 and SAM3 are dynamically
called. The load module name of SAM2 and SAM3 is named SAM2 and SAM3 respectively. Therefore, only
the program name is required.
- In the Program/Procedure Selection List panel, the procedures and programs
are listed. In this use case, the JCL points to a procedure and a program. Select the procedure that
you want to debug.
- In this use case, the JCL points to a procedure. If the After line command was chosen, you can
enter the procedure step override. RUNSAM1 is entered in this use
case.
- JCL statements are generated to invoke z/OS Debugger.
The procedure TESTSAM1 contains a step RUNSAM1, which invokes the SAM1 program. Use the procedure step override to define
EQACMD DD
(and its contents) for the RUNSAM1 STEP.The
CEEOPTS DD
statement is generated with the parameterTCP/IP
, indicating you want to debug using the remote debugger with the appropriate IP address and port number.The automonitor is turned on, AT ENTRY breakpoints are set, and instructions are provided on how to view subroutines before invocation.
What to do next
- Start the remote debugger in the Eclipse IDE.
- Enter your IP address.
- Submit the job.