I get this error when running my iPhone app
2009-12-05 21:32:06.711 iTour[7595:207] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSCFArray objectAtIndex:]: index (1) beyond bounds (1)'
As per Xcode’s debugging practise, i have no line numbers or clue as to where to start, as i have lots of arrays in my app… and the stack trace is just a lot of numbers….
Why doesnt Xcode give line numbers like VS?
Any ideas where this line of code is or where to start?
Thanks
You don’t get a line number because the program died due to an uncaught exception. An exception was thrown, passing over many frames before being caught by the default exception handler which kills your app.
If you can reproduce the problem, then you can set a breakpoint on either
-[NSException raise]orobjc_exception_throw(specifically, add those two to the symbolic breakpoints list).Given that the index is 1, then you have an array with 0 or 1 item in it. That should help narrow it down, too.