开发者

Is there a simple method for writing traces from multiple sbcl threads to standard output through MCLIDE/swank?

开发者 https://www.devze.com 2023-01-14 03:40 出处:网络
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.

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消