Learn how to debug the application by using the JCL generated
during the previous module.
About this task
The JCL that is generated from the action
creates a batch job to run the application. Because you selected Run
in batch with debugger, the JCL is generated with an extra
inline Assembler CSECT, which is linked into the application. This
CSECT, called CEEUOPT, contains Language Environment® runtime
options. These runtime options cause the program to be run in the
debugger at each invocation.
Procedure
To debug the application by using the generated JCL,
do these steps:
-
Select Window (on Windows) or IBM® Developer for z/OS®
(on macOS) > Perspective > .
- In the Open Perspective window.
- Select Debug.
- Click OK.
- In the Debug view, check that the
debug daemon is listening.
If the Debug toolbar shows
the icon

, then the daemon is not listening.
Select
Start listening on port from the menu
to start the debug daemon.
- Switch back to z/OS Projects perspective.
- In the Remote Systems view,
- Right-click the generated JCL file.
A
menu opens.
- Select Submit from the menu.
If you receive JCL errors, fix these errors and resubmit the
JCL file. If there were no JCL errors, a debug session begins.
- Set a breakpoint on the GOBACK statement.
- Press F8 to run to that breakpoint.
- Look in the Variables view and expand
the plus sign on FRIENDZRECORD.
The following variables
are displayed:
- Run the program to completion.