• 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: I added an exception breakpoint to my app...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I added an exception breakpoint to my app...


  • Subject: Re: I added an exception breakpoint to my app...
  • From: Kyle Sluder <email@hidden>
  • Date: Wed, 22 Feb 2012 22:17:42 -0800

On Wed, Feb 22, 2012 at 7:53 AM, R <email@hidden> wrote:
> and now see:
>
> Catchpoint 2 (throw)Pending breakpoint 1 - "objc_exception_throw"
> resolved
>
>
> No further details.  The app appears to be fine with no errors or
> warnings.  Is this a problem?
>
> (SnowLeopard Xcode 4)

This the result of some non-obvious changes made between Xcode 3 and Xcode 4.

1. "Break on Objective-C exceptions" is on by default, which will
cause the debugger to break on objc_exception_throw.
2. "Show Disassembly When Debugging" is off by default, meaning that
when you break in the debugger Xcode will select the first frame on
the stack that contains _your_ code; often times this is the call to
NSApplicationMain().

The frequency of this question leads me to believe the defaults are
confusing and should be changed. But for now, the upshot is that you
can hit Continue and let the exception remain uncaught and logged to
the console, or you can examine the exception object directly using
gdb (`po $rsi` on 64-bit Intel).

--Kyle Sluder

_______________________________________________

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


  • Follow-Ups:
    • Re: I added an exception breakpoint to my app...
      • From: R <email@hidden>
    • Re: I added an exception breakpoint to my app...
      • From: R <email@hidden>
References: 
 >I added an exception breakpoint to my app... (From: R <email@hidden>)

  • Prev by Date: Re: help with usb
  • Next by Date: Determining user's clock preference on iOS
  • Previous by thread: I added an exception breakpoint to my app...
  • Next by thread: Re: I added an exception breakpoint to my app...
  • Index(es):
    • Date
    • Thread