[racket] how to trace stack by command line tools?

From: Jose A. Ortega Ruiz (jao at gnu.org)
Date: Thu Feb 2 15:07:20 EST 2012

On Thu, Feb 02 2012, Danny Yoo wrote:

[...]

> There's also an "errortrace" module that can help produce stack traces:
>
>     http://docs.racket-lang.org/errortrace/using-errortrace.html
>
> You need to do a little work to hook it into your program.  For an
> example, see the very top startup script of Eric Hanchrow's rudybot:
>
>     https://github.com/offby1/rudybot/blob/master/freenode-main.rkt
>
> where you'll see that it has the line:
>
>     exec racket -l errortrace --require "$0" --main -- ${1+"$@"}
>
> at the top: that's one way to hook errortrace in.

Just a note (since the OP mentioned he's using it): geiser already loads
errortrace in its REPLs, so using geiser is another way.

Cheers,
jao
-- 
Men can live without air a few minutes, without water for about two
weeks, without food for about two months - and without a new thought
for years on end.
 -Kent Ruth


Posted on the users mailing list.