如何跟踪僵尸对象崩溃? [英] How to track down zombie object crash?

查看:99
本文介绍了如何跟踪僵尸对象崩溃?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的iOS应用程序发生了有线崩溃,并且无法100%复制.从崩溃日志中,我可以看到无法识别的选择器(属性访问器)被发送到类型不正确的对象(很可能是僵尸).无论如何,在XCode中是否可以用来查看是否尝试访问僵尸对象?

I am having some wired crash in my iOS app and its not 100% reproducible. From crash log I can see that unrecognized selector(property accessor) is sent to object that is not of correct type (most likely zombie). Is there anyway in XCode that I can used to see if I am trying to access zombie object ?

谢谢.

推荐答案

有两种方法. 1.转到XCode左侧的断点部分,向下可以看到添加异常断点的选项. 2.单击菜单栏>产品>方案>编辑方案 选择诊断"标签,然后单击启用僵尸对象"

There are two ways. 1. Go to breakpoints sections on the left of XCode, down you can see an option to add exception breakpoints. 2. Click Menubar > Product > Scheme > Edit Scheme select the "Diagnostics" tab and click "Enable Zombie Objects"

希望它会有所帮助:)

这篇关于如何跟踪僵尸对象崩溃?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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