11

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.

Hyperbole
  • 3,917
  • 4
  • 35
  • 54

1 Answers1

19

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

zpasternack
  • 17,838
  • 2
  • 63
  • 81
  • Awesome, thanks. I was under the impression I had set this correctly, but I accidentally had Break set to 'On Catch'. – Hyperbole Sep 09 '11 at 16:46
  • 1
    the + is at the bottom - this is useful to point out since its not intutively obvious – jheriko Nov 16 '12 at 15:28