System Debug Reference Manual (32650-90888)
58 Chapter3
System Debug Interface Commands and Intrinsics
DEBUG Intrinsic
Examples
The first example arms the Setdump feature. No parameters are specified, so the default
command string is assumed (the default command string produces a stack trace and
register dump).
:setdump
:
The following example also arms the Setdump feature but specifies a list of commands to
be executed if the process aborts.
:setdump ;debug="w 'Process abort at ';w pc; wl ' ' nmpath(pc)"
:
DEBUG Intrinsic
Enters Debug.
Callable from: NM, CM
Syntax
DEBUG;
Discussion
The DEBUG intrinsic calls Debug from an interactive program. The intrinsic call acts as a
hard-coded breakpoint. Execution of the calling program is halted, and the Debug prompt
is displayed.
If the call is made from a batch program, it is ignored.
Refer to the MPE/iX Intrinsics Reference Manual for additional discussion of this
intrinsic.
Condition Codes
This intrinsic does not return meaningful condition code values.
Example
The following example is a code fragment from a Pascal program. It declares DEBUG as an
intrinsic and then calls it.
PROCEDURE call_debug;
procedure debug; intrinsic;
BEGIN