Redirecting Error Output

Discussion of Common Lisp
Post Reply
Suroy
Posts: 46
Joined: Sat Dec 19, 2009 11:20 am

Redirecting Error Output

Post by Suroy » Mon Dec 28, 2009 10:01 am

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

Kompottkin
Posts: 94
Joined: Mon Jul 21, 2008 7:26 am
Location: München, Germany
Contact:

Re: Redirecting Error Output

Post by Kompottkin » Mon Dec 28, 2009 11:02 am

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.

Suroy
Posts: 46
Joined: Sat Dec 19, 2009 11:20 am

Re: Redirecting Error Output

Post by Suroy » Thu Dec 31, 2009 6:57 am

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

blandest
Posts: 19
Joined: Mon Jun 30, 2008 1:22 am

Re: Redirecting Error Output

Post by blandest » Wed Jan 06, 2010 6:40 am

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

Post Reply