Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: printing a stack trace to the console



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.


References: 
 >printing a stack trace to the console (From: Jonathan Sand <email@hidden>)
 >Re: printing a stack trace to the console (From: Allan Odgaard <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.