Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 491
Hyperbole Avatar asked Sep 08 '11 20:09

Hyperbole


1 Answers

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

like image 187
zpasternack Avatar answered Oct 14 '22 10:10

zpasternack