Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread Display Modes
Old May 4, 2011, 12:26 PM   #1
macrumors newbie
Join Date: Jan 2011
XCode 4 Break on Exception

Hi all,

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?

MaxFreud is offline   0 Reply With Quote
Old May 4, 2011, 08:28 PM   #2
macrumors regular
Join Date: Oct 2007
Location: Chicago-area
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).
RonC is offline   0 Reply With Quote
Old May 5, 2011, 04:53 AM   #3
macrumors 65816
jnoxx's Avatar
Join Date: Dec 2010
Location: Aartselaar // Antwerp // Belgium
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

regards, Noxx
jnoxx is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

breakpoint, debug, xcode4

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
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

Forum Jump

All times are GMT -5. The time now is 11:29 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2015, MacRumors.com, LLC