4.3 The Stepper
> (step (cdr '(1 2 3))) (CDR (QUOTE (1 2 3))) -> :n (FUNCTION CDR) -> :n #<Compiled-Function CDR 101302F> (QUOTE (1 2 3)) = (1 2 3) (2 3) (2 3)The Stepper output demonstrates Lisp's evaluation process:
cdr
, which is a compiled function.(1 2 3)
.cdr
, to the result of evaluating the remaining elements of the list.(2 3)
.*max-step-indentation* *step-columns-per-level*In addition, the variables
*debug-print-length*
and*debug-print-level*
control the length and level of printing within the Stepper. Whenstep
is called on a form, the variable*print-level*
is bound to the value of*debug-print-level*
, and the variable*print-length*
is bound to the value of*debug-print-length*
. You can change the printing level and length by binding the variables*debug-print-level*
and*debug-print-length*
to a fixnum integer greater than or equal to 1. See Chapter 3, "Debugging Lisp Programs" for more information.
Generated with Harlequin WebMaker