Function Print-Backtrace-To-Stream

Part of:

package trivial-backtrace
( print-backtrace-to-stream < stream > )

Send a backtrace of the current error to stream.

Stream is assumed to be an open writable file stream or a
string-output-stream. Note that print-backtrace-to-stream
will print a backtrace for whatever the Lisp deems to be the
current error.