• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: printing a stack trace to the console
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


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

  • Prev by Date: Re: Tao of string encodings (Re: Converting ASCII to UTF-8?)
  • Next by Date: Re: [ANN] Shovel - Third-Party "Software Update"
  • Previous by thread: Re: printing a stack trace to the console
  • Next by thread: keyDown: missing events
  • Index(es):
    • Date
    • Thread