• 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: What's the easiest way to break on an Obj-C exception?
[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?


  • 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


  • Prev by Date: is lockFocus main thread specific?
  • Next by Date: Having trouble just displaying a window
  • Previous by thread: Re: is lockFocus main thread specific?
  • Next by thread: Having trouble just displaying a window
  • Index(es):
    • Date
    • Thread