在Xcode中为无法识别的选择器创建断点 [英] Creating breakpoint in Xcode for unrecognized selector

查看:131
本文介绍了在Xcode中为无法识别的选择器创建断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在Xcode中设置断点,使调试器仅在 无法识别的选择器上停止

Is it possible to set the breakpoint in Xcode to have the debugger stop only on unrecognized selector?

触发,我只想在无法识别的选择器上触发异常。

I have other exceptions that are triggering, and I only want to trigger on the unrecognized selector exception, nothing else.

推荐答案

- [NSObject doesNotRecognizeSelector:] 设置符号断点应该做的。

Setting a symbolic breakpoint for -[NSObject doesNotRecognizeSelector:] should do the trick.

Xcode 4,按 cmd + 6 转到Breakpoint Navigator,然后单击 并选择添加符号断点...。配置。

In Xcode 4, press cmd+6 to go to the Breakpoint Navigator, then click the +and choose "Add Symbolic Breakpoint…". Configure.

这篇关于在Xcode中为无法识别的选择器创建断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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