Re: Xcode4: How to show the exception I'm stopped at?
Re: Xcode4: How to show the exception I'm stopped at?
- Subject: Re: Xcode4: How to show the exception I'm stopped at?
- From: Jim Ingham <email@hidden>
- Date: Wed, 22 Jun 2011 12:28:36 -0700
That would be a useful thing to add, we do know the class being thrown since we have to figure it out to compare to the exception regular expression, we just don't print it. Please file a Radar. It's unlikely we'll add this to gdb, we're not really doing enhancements to gdb anymore, but I haven't done the exception catching for lldb yet, and I can certainly put this in when I do that work.
Jim
On Jun 22, 2011, at 11:45 AM, Jens Alfke wrote:
> 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 _______________________________________________
> 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
_______________________________________________
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