Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Generating a backtrace
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
cgay  
View profile  
 More options Jul 24 2008, 9:25 am
Newsgroups: comp.lang.dylan
From: cgay <carl...@gmail.com>
Date: Thu, 24 Jul 2008 06:25:19 -0700 (PDT)
Local: Thurs, Jul 24 2008 9:25 am
Subject: Generating a backtrace
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hannes Mehnert  
View profile  
 More options Jul 25 2008, 7:40 am
Newsgroups: comp.lang.dylan
From: Hannes Mehnert <han...@opendylan.org>
Date: Fri, 25 Jul 2008 04:40:23 -0700 (PDT)
Local: Fri, Jul 25 2008 7:40 am
Subject: Re: Generating a backtrace
Hi Carl,

On Jul 24, 3:25 pm, cgay <carl...@gmail.com> wrote:

> 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...

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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google