Stack Element List Reference (Visual LISP IDE)

A stack element is an individual record or line-item history within a trace stack.

Note: The Visual LISP IDE is available on Windows only.

There are five kinds of elements that may appear within a stack:

As an example, load the following code in Visual LISP, set a breakpoint as indicated in the code comments, and then start the TRACE-10-DEEP command.

(defun stack-tracing (indexVal maxVal)
   (princ "At the top of the stack-tracing function, indexVal = ")
   (princ indexVal)
   (if (< indexVal maxVal)
      (stack-tracing (1+ indexVal) maxVal)
      (princ "Reached the maximum depth.") ; place a breakpoint
                                          ; at the beginning of
                                          ; this line
   )
)

(defun c:trace-10-deep ()
   (terpri)
   (stack-tracing 1 10)
)

The Trace Stack window from the previous sample code looks like the following illustration when program execution is interrupted at the set breakpoint.