Is there a simple method for writing traces from multiple sb
Posted: Fri Sep 03, 2010 9:31 am
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.
When I try the same thing from sbcl directly, I see what I expect:
Does swank have issues capturing standard output from non-foreground threads? If I used slime, would this kind of thing work?
Code: Select all
? (require 'sb-posix)
NIL
? (sb-thread:make-thread (lambda () (format t "hi from the thread")))
#<SB-THREAD:THREAD FINISHED values: NIL {10041ABC31}>
?
Code: Select all
* (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 #<PACKAGE "ASDF1">
; registering #<SYSTEM SB-GROVEL {10030F8371}> as SB-GROVEL
("SB-POSIX" "SB-GROVEL" "ASDF")
* (sb-thread:make-thread (lambda () (format t "hi from the thread")))
hi from the thread#<SB-THREAD:THREAD FINISHED values: NIL {1002BBC0E1}>
*