|May 4, 2011, 12:26 PM||#1|
XCode 4 Break on Exception
I have set a break on exception in XCode 4, but my problem is that the debugger breaks without telling me what line of code was the culprit. I can see the method names in the Debug Navigator, so for example I know the problem came from a call to [NSString substringFromIndex:] but there are a number of calls to that, and I have no idea which one causes the problem.
Any ideas on how to get XCode to actually indicate the break location?
|May 4, 2011, 08:28 PM||#2|
Isn't the stack visible? If it is, follow it back to your code. It's probably in there.
I happen to have some code that is throwing an exception, and I can see the entire stack backtrace. Two kinds of entries show up, dark ones (which are your code) and light grey ones (which are not).
|May 5, 2011, 04:53 AM||#3|
If u have a breakpoint, then u can see in the debugger, in Xcode 4 that's at the bottom, if it isn't there, expand the window a bit up, so it's visible.
Then if it breaks at the line, press continue.. and u can see the values, where it's exactly, and if it breaks, it should be visible too
|breakpoint, debug, xcode4|
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Exception breakpoint where no exception is caused||moonman239||iPhone/iPad Programming||1||Apr 30, 2014 07:03 AM|
|Do Not Disturb Exception||PreferSilence||iOS 7||6||Dec 28, 2013 08:35 AM|
|GlimmerBlocker ******* Exception?||SawyerTHEBEST||Mac Applications and Mac App Store||1||Feb 25, 2013 08:25 PM|
|Exception Handling||blueshogun96||Mac Programming||8||Jan 10, 2013 07:54 PM|
|Xcode 4.5 problems - breakpoints I don't want and libc++abi.dylib uncaught exception||moonman239||iPhone/iPad Programming||1||Jun 20, 2012 02:09 PM|
All times are GMT -5. The time now is 04:43 AM.