Possible duplicate:
Xcode 4.2 shows the wrong line of code on error
The Xcode 4 debugger does not seem to stop execution anywhere next to the causes of crashes in iOS Simulator. Let's say I injected an error into my code, perhaps such an error is out of bounds:
NSMutableArray * test = [[NSMutableArray alloc] initWithCapacity:5]; [test insertObject:@"Hello" atIndex:10];
When the application inevitably crashes, I ended up in the main function in main.m , not having anything in the call stack (view "Downstream") to help me find what went wrong.
Is there a debugging option that is missing from the assembly properties, perhaps? This is Xcode 4.2 on Snow Leopard if that helps.
thanks
objective-c xcode ios-simulator
Tim kemp
source share