Debugging on Leopard
Debugging on Leopard
- Subject: Debugging on Leopard
- From: Kenny Leung <email@hidden>
- Date: Tue, 13 Nov 2007 08:45:58 -0800
Hi All.
Here's a tip that would have saved me a couple of days in debugging.
Hopefully it will save somebody else some time.
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]. So during Leopard developement, some exceptions
went unnoticed. It's safer if you also break on +[NSException
raise:format] and objc_exception_throw. Hopefully there are no other
paths through which an exception can be thrown.
-Kenny
_______________________________________________
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