[plt-scheme] errortrace?

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sat Jul 25 20:12:08 EDT 2009

At Sun, 26 Jul 2009 01:00:42 +0200, troels knak-nielsen wrote:
> I have the following program:
> 
> $ cat tracecar.ss
> #lang scheme
> (require errortrace)
> 
> (car '())
> 
> When I run it, it generates an error (obviously):
> 
> $ mzscheme tracecar.ss
> car: expects argument of type <pair>; given ()
> 
> But there is no mention of the file/linenumber that generates the
> error. Shouldn't errortrace enable this or is there another way to get
> error traces?

The `errortrace' module is strange, and it doesn't work to import it
with `require'. (I think the docs are not helpful enough, and I'll work
on that.)

Run your program like this, instead:

  $ mzscheme -l errortrace -t tracecar.ss



Posted on the users mailing list.