Re: Debugging on Leopard
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