XLISP > XLISP 2.0  -  Contents  -  Reference  -  Previous | Next

*tracenable*


Type:   -   system variable
Source:   -   xlinit.c, xldbug.c

Syntax

 *tracenable*

Description

The *tracenable* system variable controls whether or not the break loop prints any back trace information on entry to the break loop. If *tracenable* is NIL , then there will be no information printed on entry to the break loop. If *tracenable* is non-NIL , then information will be printed. The 'init.lsp' initialization file sets *tracenable* usually to NIL , which suppresses the printing.

Examples

(defun foo (x) (fee x))   ; define FOO
(defun fee (y) (break))   ; define FEE
(setq *tracenable* T)     ; enable the back trace
(setq *tracelimit* NIL)   ; show all the entries

(foo 5)                   ; break: **BREAK**
                          ; prints  Function:#<Subr-BREAK...>
                          ;         Function:#<Closure-FEE...>
                          ;         Arguments:
                          ;           5
                          ;         Function:#<Closure-FOO...>
                          ;         Arguments:
                          ;           5

(clean-up)                ; from break loop
(setq *tracelimit* 2)     ; show only 2 entries

(foo 5)                   ; break: **BREAK**
                          ; prints  Function:#<Subr-BREAK...>
                          ;         Function:#<Closure-FEE...>
                          ;         Arguments:
                          ;           5

(clean-up)                ; from break loop

Note: *tracenable* and *tracelimit* system variables have to do with back trace information at entry to a break loop and are not related to the trace and untrace functions.

See the *tracenable* system variable in the XLISP 2.0 manual.

  Back to Top


XLISP > XLISP 2.0  -  Contents  -  Reference  -  Previous | Next