スタック要素のリスト リファレンス(Visual LISP IDE)

スタック要素とは、トレース スタック内の個々のレコードまたは行項目の履歴です。

注: Visual LISP IDE は Windows でのみ使用可能です。

スタックに表示される要素は 5 種類あります。

たとえば、Visual LISP に次のコードをロードし、コードのコメントで示されるようにブレークポイントを設定し、TRACE-10-DEEP コマンドを実行します。

(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)
)

上記のサンプル コードの[トレース スタック]ウィンドウは、設定されたブレークポイントでプログラムの実行が中断されたとき、次の図のようになります。