This is a read-only archive of lispforum.com. The forum was locked to new users and posts and is preserved here as static HTML from a database snapshot taken on 2019-09-07.

Redirecting Error Output

4 posts · 1300 views

Im attempting to debug slime for ecl on windows and one of the possibilities that it is failing is that the sending side somehow throws an error which prevents slime from completly reading the stream. So i would like to redirect error outputs on ecl to a text file. I tried (setf *error-output* (open "afile.txt")) but when an error is thrown it throws some internal error and ecl closes. Anyone know how i can do this? :o

Re: Redirecting Error Output

I'm only guessing here, but possibly it's because OPEN opens a file for reading by default and you didn't specify the direction.

Re: Redirecting Error Output

Tried opening a bidirectional stream in clozure and it didn't even do anything... besides open a create the file..

Re: Redirecting Error Output

Check the *inferior-lisp* Emacs buffer for errors.