Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's the easiest way to break on an Obj-C exception?



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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.