Debugging Facilities

GT.M provides a number of debugging features. These features include the ability to:

The following table summarizes the GT.M language extensions that facilitate debugging.

GT.M Debugging Tools




Establishes a temporary breakpoint, with optional M action and/or activation count.


Continues routine execution from a break.


Invokes the UNIX text editor specified by the EDITOR environment variable.


Removes multiple levels from the M invocation stack and transfers control.


Includes a new or modified M routine in the current M image; automatically recompiles if necessary.


Signals the specified condition.


Displays lines of source code.


Displays information about the M environment.


Incrementally executes a routine to the beginning of the next line of the same type.


Displays all or some local or global variables.


Holds the value of the status code for the last compile performed by a ZCOMPILE command.


Contains the status code for the last ZEDit.


Performs a ZSHOW "*" to a default file location and name, or the one optionally specified by the argument.


Contains the current level of DO/XECUTE nesting.


Translates an error condition code into text form.


Contains a string indicating the current execution location.


Controls the symbol displayed as the direct mode prompt.


Contains a string specifying a directory list containing the object, and optionally the source, files.


Contains name of the M source program most recently ZLINKed or ZEDITed; default name for next ZEDIT or ZLINK.


Contains error condition code and location of the last exception condition occurring during routine execution.


Controls the default ZSTep action.