打开无法识别的选择器 [英] Breaking on unrecognized selector
本文介绍了打开无法识别的选择器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在控制台中对此位反馈设置断点?
Is it possible to set a break point on this bit of feedback in the console? This would make handling this problem so much easier.
推荐答案
无法识别的选择器是一个例外,您可以在异常上设置断点。
Unrecognized selector is an exception, and you can set a breakpoint on exceptions.
在Xcode 4中,转到断点导航器,单击+,然后选择添加异常断点。在Exception下,选择Objective-C。在休息下,选择投掷。完成后应该看起来像这样:
In Xcode 4, go to the breakpoint navigator, click the +, and choose "Add Exception Breakpoint". Under Exception, choose Objective-C. Under Break, choose On Throw. It should look like this when you're done:
这篇关于打开无法识别的选择器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文