All Manuals > LispWorks® User Guide and Reference Manual > 37 The HCL Package

*trace-level* Variable

Summary

The current depth of tracing.

Package

hcl

Initial Value

0

Description

The variable *trace-level* holds the current depth of tracing. The current value of *trace-level* is printed before the function name during the output from tracing.

Examples
USER 8 > (defun fac (n) (if (<= n 1)
                         1
                      (* n (fac (1- n)))))
FAC 
USER 9 > (trace fac)
FAC 
USER 10 > (fac 3)
0 FAC > (3)  
  1 FAC > (2)  
   2 FAC > (1)   
   2 FAC < (1)  
  1 FAC < (2) 
0 FAC < (6) 
6 
Notes

*trace-level* is an extension to Common Lisp.

See also

trace


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:35