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      (<Xcode-users...>)
    > Help/Unsubscribe/Update your Subscription:
    > http://lists.apple.com/mailman/options/xcode-users/<andrew.merenbach...>.
    edu

    >
    > This email sent to <andrew.merenbach...>
previous month november 2007 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Go to today