有没有一种简单的方法可以通过 MCLIDE/swank 将多个 sbcl 线程的跟踪写入标准输出?
使用 SBCL,我正在编写一个小型服务器,我想跟踪服务器线程,但是当我使用 mclide/swank 时,我看不到服务器线程的任何输出。
? (需要'sb-posix) 零 ? (sb-thread:make-thread (lambda () (format t "hi from the thread")))
?
当我直接从 sbcl 尝试同样的事情时,我看到了我所期望的:
- (require '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 在从非前台线程捕获标准输出时是否存在问题?如果我用史莱姆的话,这种东西有用吗?
Using SBCL, I'm writing a small server and I would like to trace the server thread, but when I use mclide/swank, I do not see any output from the server thread.
? (require 'sb-posix)
NIL
? (sb-thread:make-thread (lambda () (format t "hi from the thread")))
?
When I try the same thing from sbcl directly, I see what I expect:
- (require 'sb-posix)
; loading system definition from
; /opt/local/var/macports/software/sbcl/1.0.39_0+html+threads/opt/local/lib/sbcl/sb-grovel/sb-grovel.asd
; into #
; registering # as SB-GROVEL
("SB-POSIX" "SB-GROVEL" "ASDF") - (sb-thread:make-thread (lambda () (format t "hi from the thread")))
hi from the thread#
*
Does swank have issues capturing standard output from non-foreground threads? If I used slime, would this kind of thing work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论