调试
外观
< Lush
解析错误尤其难以发现和修复。典型的解析错误看起来如下
? (libload "main")
*** read : end of file
Debug toplevel [y/N] ?
你可以通过回答“y”并打印出fname
来缩小错误范围
? (libload "main")
*** read : end of file
Debug toplevel [y/N] ?y
** in: (load fname)
** from: (prog1 (load fname) (let ((mtime (alist-get (quote m ...
** from: (when (libload.check rname (htable)) (when (not (lus ...
** from: (let* ((fname (libload.search s)) (rname (or (relati ...
** from: (libload "state-cost")
** from: (load fname)
[Debug]
? fname
= "/home/mkg/projects/physlearn/state-cost.lsh"