Xcode4: How to show the exception I'm stopped at?
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