|May 4, 2011, 01: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, 09: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, 05: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|
|Xcode 4.1 'Run' won't work..||DoodlyDoo||Mac Applications and Mac App Store||0||Sep 26, 2011 10:49 AM|
|xcode 4/older vs netbeans vs eclipse vs yourRecommendation on the mac for C++||neuroshock||Mac Applications and Mac App Store||0||Jul 4, 2011 06:09 PM|
|Facebook API and Xcode 4||Berko||iPhone/iPad Programming||4||Mar 15, 2011 05:39 AM|
|Does xcode 4 work on Lion Preview?||ajvizzgamer101||Mac OS X 10.7 Lion||7||Mar 11, 2011 02:50 AM|
|Help Needed - Xcode 4 Options: Use Core Data Include Unit Tests||Mitch1984||iPhone/iPad Programming||3||Feb 26, 2011 04:42 PM|
All times are GMT -5. The time now is 02:36 PM.