When I evaluate (format t "~A" (some-str-function)) on a longish string in debugger with E, the string is printed truncated, which seems like the wrong behavior to me.
Also, surprisingly when I evaluate (setf *str* (some-str-function)) from debugger, the string stored in *str* is truncated as well.
That suggests to me that the debugger is modifying the behavior of (format nil ...) or other functions I use in constructing strings used internally in my program, which would obviously be very bad and could interfere with operation of the program.
I'm using SBCL 1.0.20 on Linux (and cvs slime) btw.
Sorry, I was wrong, it's not that the actual string data is truncated. I hadn't realized I still had the debugger active when I was looking at the *str* global by printing it with (format t "~A" *str*) from the REPL, so whatever global setting the debugger uses to do string truncation was still in effect.
On Sun, 2008-09-21 at 19:14 -0400, Jeff Workman wrote:
When I evaluate (format t "~A" (some-str-function)) on a longish string in debugger with E, the string is printed truncated, which seems like the wrong behavior to me.
Also, surprisingly when I evaluate (setf *str* (some-str-function)) from debugger, the string stored in *str* is truncated as well.
That suggests to me that the debugger is modifying the behavior of (format nil ...) or other functions I use in constructing strings used internally in my program, which would obviously be very bad and could interfere with operation of the program.
I'm using SBCL 1.0.20 on Linux (and cvs slime) btw.
* Jeff Workman [2008-09-22 01:14+0200] writes:
When I evaluate (format t "~A" (some-str-function)) on a longish string in debugger with E, the string is printed truncated, which seems like the wrong behavior to me.
Also, surprisingly when I evaluate (setf *str* (some-str-function)) from debugger, the string stored in *str* is truncated as well.
That suggests to me that the debugger is modifying the behavior of (format nil ...) or other functions I use in constructing strings used internally in my program, which would obviously be very bad and could interfere with operation of the program.
*print-lines* is 10 in the debugger. You can customize that by modifying swank:*sldb-printer-bindings*.
Helmut.
Jeff Workman jeff.workman@gmail.com writes:
When I evaluate (format t "~A" (some-str-function)) on a longish string in debugger with E, the string is printed truncated, which seems like the wrong behavior to me.
Also, surprisingly when I evaluate (setf *str* (some-str-function)) from debugger, the string stored in *str* is truncated as well.
This is fixed in CVS. Thanks for reporting!,
-T.