- 4.20. -
Table of Contents
4. Standard Units
4.20. Debug - Print the Run-time Error Codes
4.20. Debug - Print the Run-time Error Codes
Targets: MS-DOS, OS/2, Win32
This module prints out the error code and the call stack in case of
a run-time error. The stack is printed as follows:
RunError #201 (range check error)
Calls stack:
SYSTEM.BOUND_ERROR [chk_fun.inp(21) at 0000000A]
TEST.ASSN [TEST.PAS(61) at 00000015]
TEST.TEST [TEST.PAS(82) at 0000001D]
To use Debug, simply list it in the uses clause of the main program.
Using the Debug unit increases the .EXE module size.
A call of a procedure with
a NIL address is currently diagnosed as an arithmetic overflow,
or (under the PMODE extender) causes a GP Fault or other traps.
- 4.20. -