NSZombieEnabled不起作用 [英] NSZombieEnabled does not work

查看:156
本文介绍了NSZombieEnabled不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我设置 NSZombieEnabled =是时,没有任何内容写入控制台。我怎样才能解决这个问题?或者你可以告诉我任何其他工具 EXC_BAD_ACCESS

When I set NSZombieEnabled = Yes nothing is written to the console. How can I fix this? Or can you advise me any other tools for an EXC_BAD_ACCESS?

推荐答案

你有一个普通的老崩溃。 EXC_BAD_ACCESS表示您的应用程序试图访问无效的内存地址。虽然在非GC的objective-c应用程序中,最常见的原因是在解除分配后发送消息,这是僵尸模式检测到的,但这种特殊的崩溃可以通过许多其他方式发生(如图所示)。

You have a plain old crash. EXC_BAD_ACCESS means that your application has tried to access a memory address that is invalid. While the most typical reason for this in a non-GC'd objective-c application is messaging an object after deallocation, something that Zombie Mode detects, this particular crash can happen any number of other ways (as demonstrated).

由于你的应用程序崩溃,你应该有一个回溯。你需要在这里发布回溯,以便我们任何人能够进一步帮助你。

Since your application is crashing, you should have a backtrace. You need to post that backtrace here for any of us to be able to help you further.

正如Brad所说,在启用调试的情况下运行你的应用程序。在Xcode中,您将在运行菜单下找到运行/调试菜单项。使用那个。当您的应用程序崩溃时,您应该在调试器窗口的左上角看到堆栈跟踪。

As Brad said, run your application with debugging enabled. In Xcode, you'll find the "Run/Debug" menu item under the "Run" menu. Use that one. When your application crashes, you should see a stack trace in the upper left corner of the debugger window.

不,实际上,它们确实显示在调试器中。一张图片价值1000字。
替代文字http://www.friday.com/bbum/ wp-content / uploads / 2010/02 / Crash.png

No, really, they do show up in the debugger. A picture is worth 1,000 words. alt text http://www.friday.com/bbum/wp-content/uploads/2010/02/Crash.png

这篇关于NSZombieEnabled不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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