Add a symbolic breakpoint on a selector in Xcode

后端 未结 5 2202
滥情空心
滥情空心 2021-02-20 07:30

There\'s a bug in my app which shows up with the following (partial) stacktrace:

2011-11-25 01:55:59.760 Events2[6650:403] -[Event boolValue]: unrecognized selec         


        
5条回答
  •  故里飘歌
    2021-02-20 08:15

    Setting a breakpoint on a selector causes lldb to halt when that selector is executed, not when it is sent. In your case, there is no selector "-[Event boolValue]", therefore this breakpoint will never be hit.

    I would set an exception breakpoint on "All Objective-C Exceptions". This will be hit when the "unrecognized selector sent" exception is thrown and you can see where the problem occurs.

提交回复
热议问题