Is it possible to set the breakpoint in Xcode to have the debugger stop only on unrecognized selector?
是否可以在Xcode中设置断点,使调试器仅在无法识别的选择器上停止?
I have other exceptions that are triggering, and I only want to trigger on the unrecognized selector
exception, nothing else.
我还有其他正在触发的异常,我只希望在无法识别的选择器异常上触发,其他的都没有。
1 个解决方案
#1
73
Setting a symbolic breakpoint for -[NSObject doesNotRecognizeSelector:]
should do the trick.
为-[NSObject doesn ' t notrecognizeselector:]设置一个符号断点应该就可以了。
In Xcode 4, press cmd
+6
to go to the Breakpoint Navigator, then click the +
and choose "Add Symbolic Breakpoint…". Configure.
在Xcode 4中,按cmd+6进入断点导航,然后单击+并选择“添加符号断点…”。配置。
#1
73
Setting a symbolic breakpoint for -[NSObject doesNotRecognizeSelector:]
should do the trick.
为-[NSObject doesn ' t notrecognizeselector:]设置一个符号断点应该就可以了。
In Xcode 4, press cmd
+6
to go to the Breakpoint Navigator, then click the +
and choose "Add Symbolic Breakpoint…". Configure.
在Xcode 4中,按cmd+6进入断点导航,然后单击+并选择“添加符号断点…”。配置。