You can debug a job from another display, whether the job is running
or waiting at a menu or command entry display.
To debug another interactive job, do the following:
- Determine the qualified job name of the job to be debugged.
To determine the name, either enter the Display Job (DSPJOB) command
from the display of the job to be debugged, or use the Work with
Active Jobs (WRKACTJOB) command.
- Enter the Start Service Job (STRSRVJOB) command using
the qualified job name.
- Enter the Start Debug (STRDBG) command and any other
debug commands desired. If the job is already running, you may need to enter
the Display Debug (DSPDBG) command to determine what statement
in the program is processing.
When the job being debugged is stopped at a breakpoint, the display
station is locked.