On Mon, 24 Oct 2011 16:01:30 -0700, Ben Kennedy <b...@zygoat.ca> 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 = m...@tidbits.com, <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 (Cocoa-dev@lists.apple.com) 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com