Re: printing a stack trace to the console
Re: printing a stack trace to the console
- Subject: Re: printing a stack trace to the console
- From: Nick Zitzmann <email@hidden>
- Date: Wed, 31 Mar 2004 07:33:43 -0700
On Mar 31, 2004, at 2:07 AM, Allan Odgaard wrote:
if(id trace = [[localException userInfo] objectForKey:NSStackTraceKey])
This is something I've been wondering about for a while - how does one
get a current stack trace programmatically? I'd like to write an
NSException category that works like +raise:format: except that it sets
an NSStackTraceKey in the userInfo so the exception handler can figure
out where the uncaught self-made exception occurred.
I tried using apropos to search for "stack trace" and searched the
archives, and found nothing...
Nick Zitzmann
<
http://www.chronosnet.com/>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.