All Manuals > LispWorks® User Guide and Reference Manual > 34 The DBG Package

*debug-print-level* Variable

Summary

Controls the depth to which nested objected are printed in debugger output.

Package

dbg

Initial Value

4

Description

The variable *debug-print-level* controls the depth to which nested objects are printed during output from the debugger. If its value is a positive integer then components at or above that level are printed. By definition an object to be printed is considered to be at level 0, its components are at level 1, their subcomponents are at level 2, and so on. If *debug-print-level* is nil then objects are printed to arbitrary depth.

Examples
USER 89 > (setq dbg:*debug-print-level* 2)
2 
USER 90 > (subseq 3 '(cat (dog) ((goldfish))
                                 (((hamster)))))
Error: Illegal START argument (CAT (DOG)
                                    ((GOLDFISH))
                                    (((HAMSTER))))
 1 (abort) return to top loop level 0.
Type :c followed by a number to proceed
USER 91 : 1 > :v
Call to CHECK-START-AND-END  :
Arg 0 (START): (CAT (DOG) (#) (#))
Arg 1 (END): NIL
Notes

*debug-print-level* is an extension to Common Lisp.

See also

3.6 Debugger control variables


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