Breaking on unrecognized selector
Asked Answered
F

1

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.

Furniture answered 8/9, 2011 at 20:37 Comment(0)
L
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: https://static.mcmap.net/file/mcmap/ZG-Ab5ovKRltXw2xZRlAWRgQWRft/20110909-tp8js5bq2pgkqr5ij89abmm5i8.png

Lacquer answered 8/9, 2011 at 23:18 Comment(2)
Awesome, thanks. I was under the impression I had set this correctly, but I accidentally had Break set to 'On Catch'.Furniture
the + is at the bottom - this is useful to point out since its not intutively obviousEverybody

© 2022 - 2024 — McMap. All rights reserved.