Breaking on unrecognized selector

后端 未结 1 708
予麋鹿
予麋鹿 2020-12-10 14:19

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条回答
  • 2020-12-10 14:45

    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: http://img.skitch.com/20110909-tp8js5bq2pgkqr5ij89abmm5i8.png

    0 讨论(0)
提交回复
热议问题