• 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: Debugging on Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging on Leopard


  • Subject: Re: Debugging on Leopard
  • From: Chris Hanson <email@hidden>
  • Date: Tue, 13 Nov 2007 15:11:56 -0800

On Nov 13, 2007, at 8:45 AM, Kenny Leung wrote:

I always have a breakpoint set on -[NSException raise] in order to trap any exceptions that get hit. On Tiger and previous this has never failed me, but on Leopard, not all exceptions go through - [NSException raise].

As Clark said, on Leopard all exceptions go through objc_exception_throw.


When doing Panther and Tiger development, you should have breakpoints on both objc_exception_throw and -[NSException raise] because not all exceptions are thrown through the latter. Specifically, any exception that is thrown by a @throw statement will always go through objc_exception_throw.

The difference is that in Leopard, even exceptions that are *not* thrown by a @throw statement (e.g. exception objects sent -raise) also go through that single bottleneck.

  -- Chris

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Debugging on Leopard (From: Kenny Leung <email@hidden>)

  • Prev by Date: Re: Test Cases + Nib files
  • Next by Date: Re: Memory limits under Garbage Collection, NSMutableData vs. malloc()
  • Previous by thread: Re: Debugging on Leopard
  • Next by thread: Re: Cocoa-dev Digest, Vol 4, Issue 217
  • Index(es):
    • Date
    • Thread