Top
Back: timer
Forward: rtimer
FastBack: Control structures
FastForward:
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=8
(debug version only:) show basering for all levels
TRACE=128
show all calls to kernel routines
TRACE=256
show all assigns
TRACE=512
show all automatic type conversions
TRACE=1024
profiling: print line numbers to smon.out

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.

Top Back: timer Forward: rtimer FastBack: Control structures FastForward: Up: System variables Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4.3.1, 2022, generated by texi2html.