NM callable only.
Arms the system debugger call from a process abort.
Operation Notes |
 |
The process enabling the system debugger can be the current
process or any child of the current process created after the intrinsic
call. The commands are contained in a character array, left-justified,
with a delimiting character as the first and last character of the command
string.
Before a process aborts, Debug is called to execute the commands
in cmdstr. Any command that attempts to obtain user input causes
an error when executed by Debug. If the process that aborts is being
run from a job, the process terminates after executing the command
string. If the process is being run from a session, then after the
specified command string has been executed, Debug stops to accept
interactive commands with I/O performed at the user terminal if
the following conditions are met: the abort did not occur while
in system code; and the process entered the abort code through a
native mode interrupt (typically caused by arithmetic and code related
traps).
Once Debug accepts interactive input, the user is free to
enter any DEBUG command. The user may resume the process or terminate
it with the Debug CONTINUE command.
If the abort is caused by a stack overflow, a stack trace
is printed and the process is terminated immediately and the command
string is not executed.