Previous: 4.35. ErrCodes - ErrorCode constants To the Table of Contents Next: 4.37. Graph - Graph unit
4.35. ErrCodes - ErrorCode constants Table of Contents 4.37. Graph - Graph unit

- 4.36. -
Table of Contents
4. Standard Units
4.36. FDebug - Write the ErrorCode to the log file


4.36. FDebug - Write the ErrorCode to the log file

Targets: MS-DOS, OS/2, Win32


This module writes the error code and the call stack to the debug.log file, which will be created automatically 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 FDebug, simply list it in the uses clause of the main program. Using the FDebug 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.


Previous: 4.35. ErrCodes - ErrorCode constants To the Table of Contents Next: 4.37. Graph - Graph unit
4.35. ErrCodes - ErrorCode constants Table of Contents 4.37. Graph - Graph unit

- 4.36. -