• 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
Xcode4: How to show the exception I'm stopped at?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode4: How to show the exception I'm stopped at?


  • Subject: Xcode4: How to show the exception I'm stopped at?
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 22 Jun 2011 11:45:08 -0700

In Xcode 4, if I set a breakpoint on “all exceptions”, and hit that breakpoint, the debugger doesn’t show any information about what the exception is. It’s often clear from context, but not always; it’s particularly annoying when I hit a failure in an STAssertEquals call and can’t tell what the incorrect value is.

I found a workaround:
1. Select the breakpoints view in the left-side list
2. Right-click the All Exceptions breakpoint and choose Edit
3. Click “add an action”
4. Enter a debugger command “po $eax”.

This is a bit of a kludge, though, and architectures other than 32-bit x86 will need a different command. Am I missing some easier way to do this? Or should I file a Radar?

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Xcode4: How to show the exception I'm stopped at?
      • From: Jim Ingham <email@hidden>
  • Prev by Date: Re: reading the same documentation on iPad as on Mac?
  • Next by Date: Re: reading the same documentation on iPad as on Mac?
  • Previous by thread: Re: reading the same documentation on iPad as on Mac?
  • Next by thread: Re: Xcode4: How to show the exception I'm stopped at?
  • Index(es):
    • Date
    • Thread