• 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: NSAssert no longer displaying reason in console
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSAssert no longer displaying reason in console


  • Subject: Re: NSAssert no longer displaying reason in console
  • From: Matt Neuburg <email@hidden>
  • Date: Sun, 30 Oct 2011 09:45:25 -0700

On Mon, 24 Oct 2011 16:01:30 -0700, Ben Kennedy <email@hidden> said:
>On 24 Oct 2011, at 3:53 pm, Matt Neuburg wrote:
>
>> That's all! Dude, where's my reason? And without a printing of the reason, what's the good of the assert? (And hey, I wouldn't mind seeing that lovely call stack, too.)
>
>Exceptions don't get logged automatically anymore when running under iOS 5, in my experience.  I've had to manually add breakpoint actions of "po $eax" and "po $r0"  on "objc_exception_throw" and "-[NSException raise]" to deal with this problem.

Just reporting back further: I found that telling my objc_exception_throw to po $eax had no effect in GDB under Xcode 4.2 / iOS 5. I could say po $eax at the gdb command line and it worked, showing the reason; but Xcode seems to be tromping on the logging in such a way that attaching this as a po gdb command to the exception doesn't work.

However, if I switch to LLDB, it does work. m.

--
matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 4!
http://www.apeth.net/matt/default.html#iosbook_______________________________________________

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: Re: minor ARC casting question
  • Next by Date: Versions and project editor app
  • Previous by thread: Re: NSAssert no longer displaying reason in console
  • Next by thread: Help with view constraints
  • Index(es):
    • Date
    • Thread