Redirecting Error Output

Discussion of Common Lisp

Redirecting Error Output

Postby 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
Suroy
 
Posts: 46
Joined: Sat Dec 19, 2009 11:20 am

Re: Redirecting Error Output

Postby 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.
User avatar
Kompottkin
 
Posts: 94
Joined: Mon Jul 21, 2008 7:26 am
Location: München, Germany

Re: Redirecting Error Output

Postby 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..
Suroy
 
Posts: 46
Joined: Sat Dec 19, 2009 11:20 am

Re: Redirecting Error Output

Postby blandest » Wed Jan 06, 2010 6:40 am

Check the *inferior-lisp* Emacs buffer for errors.
blandest
 
Posts: 19
Joined: Mon Jun 30, 2008 1:22 am


Return to Common Lisp

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests

cron