【发布时间】:2019-10-17 21:28:22
【问题描述】:
在 ABCL 中,在开发过程中,我有时会遇到失控的函数。我希望能够停止执行并返回顶级 LISP,而不会杀死 LISP/JVM 进程(在我的 emacs shell 中)并丢失我当前的 LISP 环境。
我尝试了各种控制键(例如,Control-C、Control-D、...),但最好的结果是杀死 LISP 或 JVM。
;;; How to stop this function and return to LISP interactive
;;; without killing lisp...?
(defun runaway ()
(let ((result nil))
(dotimes (count 10 result)
(sleep 2)
(print count))))
C-c C-cTerminate 批处理作业 (Y/N)? n n
进程inerious-lisp异常退出,代码为130
【问题讨论】:
-
注:我刚看到你的问题,因为我很少看abcl标签;如果你也添加“common-lisp”标签(或 lisp),你会有更好的曝光率
标签: lisp common-lisp break control-c abcl