如何在调试iPhone应用程序时使用Zombie?

发布于 2024-09-24 12:26:46 字数 32 浏览 0 评论 0原文

如何在调试iPhone应用程序时使用Zombie?

How to use Zombie while debugging iPhone application?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

╰◇生如夏花灿烂 2024-10-01 12:26:46

这是关于设置环境变量。详细请看下面的文章
http://www.cocoadev.com/index.pl?NSZombieEnabled

小心不让它就位,因为没有内存是免费的

It's about setting up an environment variable. See the following article for details
http://www.cocoadev.com/index.pl?NSZombieEnabled

Take good care of not letting this in place because no memory will ever be free.

瀟灑尐姊 2024-10-01 12:26:46

您可以打开“仪器”并从“选择目标”下拉菜单中选择“僵尸”仪器和您的应用程序目标。并使用您的应用程序直到它崩溃,这将导致您找到导致其崩溃的 Zombie 对象。
提醒不要将 Leak 工具与 Zombie 工具一起使用,因为它会显示许多泄漏(未释放的对象保留在内存中以测试它们将来是否会成为僵尸)并记住它会使用大量内存,因此您最好用于此任务的模拟器。

You can open up Instruments and choose the Zombie instrument and next your app target from the 'Choose Target' drop down menu. And use your app till it crashes this will lead you to the Zombie object that causes it to crash.
Remind not to use the Leak instrument with the Zombie one since it will show many leaks (the objects not deallocated kept in memory to test if they can be zombies in the futures) and remember it will use lots of memory so you'd better you the simulator for this task.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文