如何在Xcode中添加异常断点?Xcode中的异常断点
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, @"AppController");
[pool release];
return retVal;
}
我的项目在下面的代码中随机崩溃,在谷歌搜索和一些人建议添加异常断点。我通过点击源代码行添加了断点。编辑断点不允许我改变类型。如何添加异常断点和添加位置? ?(在AppDelegate中
它不会在给定的代码中崩溃。 – rptwsthi
@rptwsthi,在添加异常断点后xcode我得到确切的崩溃线。它的伟大..为什么不默认启用这个在调试模式... :) – iPhoneChip
@iPhoneChip:可能是因为它只是停在那里,并没有提供有关例外的信息。 – Rakesh