Subject: Re: Common Lisp: printing the backtrace as well as the error message
From: rpw3@rpw3.org (Rob Warnock)
Date: Sun, 10 Sep 2006 22:03:50 -0500
Newsgroups: comp.lang.lisp
Message-ID: <2KednbBCJJKLT5nYnZ2dnUVZ_v2dnZ2d@speakeasy.net>
Pascal Bourguignon  <pjb@informatimago.com> wrote:
+---------------
| Also: (apropos :backtrace) can help.
| For example:
| #+sbcl (SB-DEBUG:BACKTRACE-AS-LIST)
| #+clisp (with-output-to-string (s) (system::print-backtrace :out s))
+---------------

Or in CMUCL, one of these:

  #+cmu (debug:backtrace)
  #+cmu (with-output-to-string (s) (debug:backtrace 100 s)

The full signature is:

  debug:backtrace (&optional (count most-positive-fixnum)
			     (*standard-output* *debug-io*))


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607