Home Online Manual
Top
Back: timer
Forward: rtimer
FastBack: Control structures
FastForward: Tricks and pitfalls
Up: System variables
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

5.3.9 TRACE

Type:
int
Purpose:
sets level of debugging.
TRACE=0
No debugging messages are printed.
TRACE=1
Messages about entering and leaving of procedures are displayed.
TRACE=3
Messages about entering and leaving of procedures together with line numbers are displayed.
TRACE=4
Each line is echoed and the interpretation of commands in this line is suspended until the user presses RETURN.

TRACE is defaulted to 0.
TRACE does not affect the output of commands.
Example:
 
  TRACE=1;
  LIB "general.lib";
  sum(1..100);
==> entering sum (level 0)
==> entering   lsum (level 1)
==> entering     lsum (level 2)
==> entering       lsum (level 3)
==> entering         lsum (level 4)
==> leaving          lsum (level 4)
==> entering         lsum (level 4)
==> leaving          lsum (level 4)
==> leaving        lsum (level 3)
==> entering       lsum (level 3)
==> entering         lsum (level 4)
==> leaving          lsum (level 4)
==> entering         lsum (level 4)
==> leaving          lsum (level 4)
==> leaving        lsum (level 3)
==> leaving      lsum (level 2)
==> entering     lsum (level 2)
==> entering       lsum (level 3)
==> entering         lsum (level 4)
==> leaving          lsum (level 4)
==> entering         lsum (level 4)
==> leaving          lsum (level 4)
==> leaving        lsum (level 3)
==> entering       lsum (level 3)
==> entering         lsum (level 4)
==> leaving          lsum (level 4)
==> entering         lsum (level 4)
==> leaving          lsum (level 4)
==> leaving        lsum (level 3)
==> leaving      lsum (level 2)
==> leaving    lsum (level 1)
==> entering   lsum (level 1)
==> entering     lsum (level 2)
==> entering       lsum (level 3)
==> entering         lsum (level 4)
==> leaving          lsum (level 4)
==> entering         lsum (level 4)
==> leaving          lsum (level 4)
==> leaving        lsum (level 3)
==> entering       lsum (level 3)
==> entering         lsum (level 4)
==> leaving          lsum (level 4)
==> entering         lsum (level 4)
==> leaving          lsum (level 4)
==> leaving        lsum (level 3)
==> leaving      lsum (level 2)
==> entering     lsum (level 2)
==> entering       lsum (level 3)
==> entering         lsum (level 4)
==> leaving          lsum (level 4)
==> entering         lsum (level 4)
==> leaving          lsum (level 4)
==> leaving        lsum (level 3)
==> entering       lsum (level 3)
==> entering         lsum (level 4)
==> leaving          lsum (level 4)
==> entering         lsum (level 4)
==> leaving          lsum (level 4)
==> leaving        lsum (level 3)
==> leaving      lsum (level 2)
==> leaving    lsum (level 1)
==> leaving  sum (level 0)
==> 5050
See int.