Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Generating a backtrace

4 views
Skip to first unread message

cgay

unread,
Jul 24, 2008, 9:25:19 AM7/24/08
to
How would I go about generating a backtrace inside my exception
handler? e.g., say I wanted to display a nice backtrace in a web page
when my web app is in debug mode...

Thanks.
-Carl

Hannes Mehnert

unread,
Jul 25, 2008, 7:40:23 AM7/25/08
to
Hi Carl,

there is the library stack-walker in fundev/sources/lib/stack-walker,
which
prints a stack trace.

It is not a "nice backtrace" since Dylan names are still mangled;
Also, source
record locations are not included. But most of the time it is enough
to pin down
the error location.

I don't think with the current lack of debugging information in OD (at
least on
non-win32) it is not easily possible to get a more appropriate
backtrace.

But the stack-walker could be modified to demangle Dylan names, either
using
dfmc-mangling or tools/debugger-extensions/ (incomplete C code).


Best regards,

hannes

0 new messages