在 Xcode 中为无法识别的选择器创建断点 [英] Creating breakpoint in Xcode for unrecognized selector
本文介绍了在 Xcode 中为无法识别的选择器创建断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在 Xcode 中设置断点让调试器仅停止在无法识别的选择器上?
Is it possible to set the breakpoint in Xcode to have the debugger stop only on unrecognized selector?
我有其他正在触发的异常,我只想在 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,然后单击 +
并选择Add Symbolic Breakpoint...".配置.
In Xcode 4, press cmd
+6
to go to the Breakpoint Navigator, then click the +
and choose "Add Symbolic Breakpoint…". Configure.
这篇关于在 Xcode 中为无法识别的选择器创建断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文