Debug another interactive job

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:

  1. 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.
  2. Enter the Start Service Job (STRSRVJOB) command using the qualified job name.
  3. 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.

Related information
Start Debug (STRDBG) command
Display Debug (DSPDBG) command
CL command finder