Whether a job is running or waiting at a menu
or command entry display, you can debug the job from another display.
To debug another interactive job, follow these
steps:
- 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 you want. 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.