Re: Breaking to debugger on exceptions
Re: Breaking to debugger on exceptions
- Subject: Re: Breaking to debugger on exceptions
- From: Prachi Gauriar <email@hidden>
- Date: Tue, 20 Apr 2004 19:34:39 -0500
On Apr 20, 2004, at 7:17 PM, Steve Palmer wrote:
While debugging my application, I noticed this appear in the console:
2004-04-20 17:13:43.752 myapp[2128] Exception raised during posting of
notification. Ignored. exception: *** -[NSCFArray objectAtIndex:]:
index (-1) beyond bounds (0)
However there was no break into the debugger to let me figure out what
was happening. Similarly, any NSAsserts I have don't cause a break.
What do I have to do to force exceptions and asserts to break into the
debugger?
This is a FAQ... you should be able to find an answer the archives, so
I encourage you to check there before posting.
In the "Debug" menu, choose "Show Breakpoints". Add a breakpoint for
"[NSException raise]". This is essentially the same as typing in "fb
[NSException raise]" in the GDB console, which adds a future-break
whenever [NSException raise] is called.
-Prachi
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.