使用 SBCL,我正在编写一个小型服务器,我想跟踪服务器线程,但是当我使用 mclide/swank 时,我看不到服务器线程的任何输出。
? (需要'sb-posix)无?(sb-thread:make-thread (lambda () (format t "hi from the thread")))
?
当我直接从 sbcl 尝试相同的事情时,我看到了我的期望:
- (需要'sb-posix);从加载系统定义;/opt/local/var/macports/software/sbcl/1.0.39_0+html+threads/opt/local/lib/sbcl/sb-grovel/sb-grovel.asd;进入 # ; 将 # 注册为 SB-GROVEL ("SB-POSIX" "SB-GROVEL" "ASDF")
- (sb-thread:make-thread (lambda () (format t "hi from the thread"))) hi from the thread# *
swank 是否有从非前台线程捕获标准输出的问题?如果我使用粘液,这种东西会起作用吗?