4.6 Reference Pages
*max-step-indentation*
*max-step-indentation*
sets the maximum number of spaces allowed for indentation of the Stepper's output. The default value is 60.
step
form | {function-name}+
step
allows you to examine the behavior of programs by stepping through the evaluation of functions.
step
can be called on any compiled or interpreted function. It displays only the evaluation steps that are performed interpretively, so it is most useful when called on interpreted functions.
> (defun f (x) (when x (1+ x))) F> (step (f 1)) (F 1) -> :n (FUNCTION F) -> :n #<Interpreted-Function (NAMED-LAMBDA F (X) (BLOCK F (WHEN X #))) 50A217> 1 = 1 (BLOCK F (WHEN X (1+ X))) -> :s 2 2 2
> (step f) (F) ;; The Stepper prompt --> indicates that the displayed form is a macro ;; expansion.
> (f 1) (BLOCK F (WHEN X (1+ X))) -> :n (WHEN X (1+ X)) --> :n X = 1 (1+ X) -> :u 2 2 2 2
trace
, untrace
*step-columns-per-level*
*step-columns-per-level*
controls how many columns are added to the Stepper's output for each level of function call. The value is an integer; the default value is 2.
*step-level*
*step-level*
represents how deeply nested the call to the macrostep
is.
> *step-level* 0
Generated with Harlequin WebMaker