Xcode 4.2显示错误的错误代码行 [英] Xcode 4.2 showing the wrong line of code on error

查看:132
本文介绍了Xcode 4.2显示错误的错误代码行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

Xcode在崩溃后总是在main.m停止

在过去的Xcode版本中,每次调试崩溃时,它都会在罪魁祸首中停止调试,并显示错误消息。

On versions of Xcode in the past, every time I was debugging a crash, it stopped the debugging in the culprit line, with an error message.

Xcode 4.2代替我在main.m中显示这一行

Xcode 4.2 instead shows me this line in main.m

int retVal = UIApplicationMain(argc, argv, nil, nil);

作为崩溃的罪魁祸首,尽管错误发生在另一个地方。

as the culprit line for the crash, despite the error being in another place.

如何在Xcode 4.2中使用它,就像以前在早期版本中工作一样?

How do I get this to work in Xcode 4.2 like it used to work in earlier versions?

推荐答案

我不知道如何收回旧的行为。

I do not know how to reclaim the old behavior.

Zane Claes在这里为类似问题提供了一个很好的解决方案。

Zane Claes offers a great solution on a similar question here.

Xcode 4.2 debug不符号堆栈调用

在找到应用程序崩溃的类后,您可以使用调试器逐步查找罪魁祸首

After you find what class your app is crashing in you can use the debugger to step through and find the culprit

这篇关于Xcode 4.2显示错误的错误代码行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆