Possible Duplicate:
Xcode 4.2 jumps to main.m every time after stopping simulator
Whatever a new crashing error I come across, it always seems to terminate in main.m. It will show the correct error, but highlight the this line in main.m
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
It’s making things a bit hard to debug. Do I need to change some settings to get it to highlight the the correct bit of code?
“You can add an Exception Breakpoint by opening up the Breakpoint Navigator pane, and clicking on the X button in the bottom left corner”
from this more detailed instruction