Lisp HUG Maillist Archive

unsuitable for *debug-io* -- delivery problem


I have a custom backtrace routine that writes out any error to a file.  I've done this by simply opening up a file, and temporarily setting *debug-io* to that file's stream and then calling (mp:map-process-backtrace mp:*current-process* nil :frame-func 'dbg::dbg-print-frame)

I do this because dbg::dbg-print-frame does a very nice job intelligently printing out the different frame types with useful information.


This works fine when running from LispWorks. But my OS X Universal deliverable gives me this error when it tries to record the backtrace:

#<STREAM::LATIN-1-FILE-STREAM /Users/cperkins/SiteGrinderData/error_log_8579.html> is unsuitable for *debug-io*


So I have a series of questions:

1. Is there a way to get dbg::dbg-print-frame to use my open stream, rather than temporarily changing *debug-io*? 
2. Is this a delivery option problem?  Any clue what delivery keywords I should add?
3. Why is the stream "unsuitable"?

Updated at: 2020-12-10 08:45 UTC