Exception Breakpoint in Xcode

2018-12-31 00:47发布

How to add Exception Breakpoint in Xcode?

int main(int argc, char *argv[]) {

    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    int retVal = UIApplicationMain(argc, argv, nil, @"AppController");
    [pool release];
    return retVal;
}

My Project randomly crashed in below code, searched in google and some one suggested to add Exception Breakpoint. I added break point by clicking on source line..Editing breakpoint not allow me to change type. How to add Exception Breakpoint and where to add? (in AppDelegate?

enter image description here

标签: iphone xcode
3条回答
无与为乐者.
2楼-- · 2018-12-31 01:32

You can easily add Exception Breakpoint in Xcode. See below image:

enter image description here

查看更多
何处买醉
3楼-- · 2018-12-31 01:33

Here are the steps.

  • Move to "Breakpoint Navigator".

  • Click + symbol at bottom-left corner of navigator.

enter image description here

  • You should see this.

enter image description here

查看更多
君临天下
4楼-- · 2018-12-31 01:39

Follow these steps:

  • On xcode go to Breakpoint navigator (press command+6/ For xcode7+ command+7)
  • click on + button at bottom left
  • Click on add exception break point, follow the instruction in following image

enter image description here

查看更多
登录 后发表回答