启用“僵尸"后,如何搜寻它们? [英] Once I enable Zombies, how do I hunt them down?

查看:76
本文介绍了启用“僵尸"后,如何搜寻它们?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

继续一些有用的StackOverflow调试,我有一个僵尸需要追踪:

Continuing some helpful StackOverflow debugging, I have a zombie I need to track down:

2010-08-22 10:18:51.111 AppName[106:307] *** -[CFString release]: message sent to deallocated instance 0x19f3b0

人们将如何找到0x19f3b0僵尸的变量名?

How would one find the variable name or whathaveyou for the 0x19f3b0 Zombie?

推荐答案

运行分配"工具,启用"NSZombie检测"并打开音轨释放/保留".然后在运行时,遇到僵尸时,它会弹出警报,让您向下钻取以查看释放了哪些代码并保留了原始对象.

Run the Allocations instrument, and enable "NSZombie Detection" and also turn on "track release/retain". Then as you are running, when the zombie is encountered, it pops up an alert and lets you drill down to explore what code released and retained the original object.

这篇关于启用“僵尸"后,如何搜寻它们?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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