xCode 4.3.1在出现异常时始终跳转到主函数

xCode 4.3.1在出现异常时始终跳转到主函数,xcode,xcode4.3,Xcode,Xcode4.3,我的XCode(v4.3.1)总是跳转到main: int main(int argc, char *argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate"); [pool release]; return retVal; } 只要我有例外。 我的xCo

我的XCode(v4.3.1)总是跳转到main:

int main(int argc, char *argv[])
{
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");
    [pool release];
    return retVal;
}
只要我有例外。 我的xCode怎么了?如何解决此问题?
请帮帮我

你的Xcoode没有问题。根据异常类型的不同,当应用程序崩溃时,某些异常将跳转到main。

XCode有时在抛出异常时不会完全停止在您想要的位置。如果您想知道它被抛出的确切位置,可以在
objc\u exception\u throw
中设置一个断点,并让它停在
@throw


作为一种奖励,如果您使用多个项目,如果您将该断点添加到
全局断点
,它将在所有项目中工作。

尝试在
objc\u exception\u throw
中设置一个断点,这将使您在抛出断点的地方停止。谢谢Isakson。它解决了我的问题,在以下内容之后:@toandk:请接受下面Joachim的回答,这样其他人就会知道这个话题已经结束了。