DSPDBG (Display Debug) Command Description
Purpose
The Display Debug (DSPDBG) command shows the current status of debug mode. It shows the following:
- The call stack, indicating which programs are currently being debugged
- The instruction number of the calling instruction or the instruction number of each breakpoint at which a program is stopped
- The recursion level
Programs that are in debug mode but have not been called are also shown.
Restrictions:
- This command is valid only in debug mode. To start debug mode, see the Start Debug (STRDBG) command.
- This command cannot be used if the user is servicing another job, and that job is on a job queue, or is being held, suspended, or ended.
- This command cannot be used to show the procedures of a bound program on the stack. Use the Display Job (DSPJOB) command to show those procedures.
- This command cannot be used to show bound programs that are being debugged.
Optional Parameter
- OUTPUT
- Specifies whether the output from the command is shown at the requesting display station or printed with the job's spooled output. More information on this parameter is in commonly used parameters.
*: Output requested by an interactive job is shown on the display. Output requested by a batch job is printed with the job's spooled output.
*PRINT: The output is printed with the job's spooled output.
Example for DSPDBG
DSPDBGIf entered interactively, this command shows the current attributes of debug mode at the display station. Also shown are the breakpoints at which any of the programs being debugged are stopped, the recursion levels of the programs that are currently active, and the names of the programs that have not been called.
Error messages for DSPDBG