Creating breakpoint in Xcode for unrecognized sele

2019-01-08 08:59发布

Is it possible to set the breakpoint in Xcode to have the debugger stop only on unrecognized selector?

I have other exceptions that are triggering, and I only want to trigger on the unrecognized selector exception, nothing else.

1条回答
别忘想泡老子
2楼-- · 2019-01-08 09:14

Setting a symbolic breakpoint for -[NSObject doesNotRecognizeSelector:] should do the trick.

In Xcode 4, press cmd+6 to go to the Breakpoint Navigator, then click the +and choose "Add Symbolic Breakpoint…". Configure.

查看更多
登录 后发表回答