0

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?

Community
  • 1
  • 1
cannyboy
  • 24,180
  • 40
  • 146
  • 252
  • try turning [NSZombies](http://www.cocoadev.com/index.pl?NSZombieEnabled) on. – rckoenes Dec 01 '11 at 09:49
  • 1
    http://stackoverflow.com/questions/7682277/xcode-4-2-jumps-to-main-m-every-time-after-stopping-simulator and http://stackoverflow.com/questions/8321184/xcode-always-stopping-at-main-m-after-a-crash – beryllium Dec 01 '11 at 09:49
  • this link will help you http://stackoverflow.com/questions/7288492/standard-arguments-in-main-file – Anil Kothari Dec 01 '11 at 09:51

1 Answers1

1

"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

ader
  • 5,403
  • 1
  • 21
  • 26