[slime-devel] Re: Truncated error messages in the debugger

Madhu enometh at meer.net
Mon Sep 22 11:13:29 UTC 2008


* Zach <95f1acd0809212239y60250171vf07efcbc4697a480 at mail.gmail.com> :
Wrote on Sun, 21 Sep 2008 23:39:16 -0600:

<Re: eliding of condition printed in debugger>

Marco Barringer's last patch introduced a *SLDB-CONDITION-PRINTER*
variable which defaults to FORMAT-SLDB-CONDITION/

Using this you can set

(setf swank::*sldb-condition-printer*
      #'(lambda (c)
	  (let ((*print-level* nil)
		(*print-lines* nil)
		(*print-length* nil)
		#+cmu (debug::*debug-print-length* nil)
		#+cmu (debug::*debug-print-level* nil))
	    (princ-to-string c))))

This should give you the full untruncated condition displayed in the
debugger.  

Note this gets called in SWANK::SAFE-CONDITION-MESSAGE , and in some
cases it becomes necessary to redefine that function to get desired
behaviour.

--
Madhu










More information about the slime-devel mailing list