Debugging another interactive job

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:

  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 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.