Re: What's the easiest way to break on an Obj-C exception?
Re: What's the easiest way to break on an Obj-C exception?
- Subject: Re: What's the easiest way to break on an Obj-C exception?
- From: Andrew Merenbach <email@hidden>
- Date: Wed, 14 Nov 2007 22:32:20 -0800
Hi, Rick,
Assuming Leopard and Xcode 3, go to the menu Run > Manage Breakpoints
> Add Symbolic Breakpoint and type in:
objc_exception_throw
This will cause a break on any and all exceptions. This also obviates
the need for -[NSException raise] as a breakpoint, at least under
Leopard.
Cheers,
Andrew
On Nov 14, 2007, at 9:20 PM, Rick Mann wrote:
How can I get Xcode to stop on exceptions in my Cocoa app? I heard
something about setting a breakpoint in some magical method, but why
isn't there a menu item to turn this modality on?
TIA,
Rick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
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