• 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: Ben Kennedy <email@hidden>
  • Date: Wed, 02 Nov 2011 09:55:28 -0700

On 02 Nov 2011, at 8:22 am, Matt Neuburg wrote:

On Nov 2, 2011, at 3:39 AM, Kyle Sluder wrote:

I have to ask why you're printing $eax

You tell me. I'm doing it because Ben Kennedy and a bunch of Web sites (after a Google search) told me to. m.

And I'll tell you why I did: after being baffled for awhile why my app was crashing with no console messages (and Xcode showing me main.c), I decided to manually set breakpoints on objc_exception_throw and - [NSException raise], hoping that would give me a reasonable chance of actually seeing, you know, the exception that crashed my app. Of course "po self" doesn't work there, so I crudely began po'ing every CPU register (not knowing much at all about ABI conventions) until I happened on a message that resembled the description string I was expecting. That happened to be eax in the simulator, and r0 on the device.


Indeed, I am running Snow Leopard on my Mac Pro. (I don't have much taste for Lion, so I've thus far relegated it to my MacBook Pro as a test platform.)

b

--
Ben Kennedy, chief magician
Zygoat Creative Technical Services
http://www.zygoat.ca

_______________________________________________

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: NSAssert no longer displaying reason in console
      • From: Matt Neuburg <email@hidden>
References: 
 >Re: NSAssert no longer displaying reason in console (From: Matt Neuburg <email@hidden>)
 >Re: NSAssert no longer displaying reason in console (From: Kyle Sluder <email@hidden>)
 >Re: NSAssert no longer displaying reason in console (From: Matt Neuburg <email@hidden>)
 >Re: NSAssert no longer displaying reason in console (From: Kyle Sluder <email@hidden>)
 >Re: NSAssert no longer displaying reason in console (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: minor ARC casting question
  • Next by Date: Re: NSAssert no longer displaying reason in console
  • Previous by thread: Re: NSAssert no longer displaying reason in console
  • Next by thread: Re: NSAssert no longer displaying reason in console
  • Index(es):
    • Date
    • Thread