Breaking on unrecognized selector

懵懂的女人 提交于 2019-11-27 05:56:03

问题


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.


回答1:


Unrecognized selector is an exception, and you can set a breakpoint on exceptions.

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:



来源:https://stackoverflow.com/questions/7354169/breaking-on-unrecognized-selector

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!