Add a symbolic breakpoint on a selector in Xcode

后端 未结 5 2190
滥情空心
滥情空心 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:29

    I was looking for the same answer (symbolic breakpoints) and this link helped: http://www.cocoabuilder.com/archive/cocoa/308967-symbolic-breakpoints.html#308970

    You have to follow this pattern (it is also given as a placeholder in Xcode breakpoint editor):

    - [name_of_the_class name_of_the_method:]
    

    For example I was looking to see who does set my left bar item and overrides my settings, I used -[UINavigationItem setLeftBarButtonItem:]

    and it worked. Or this one

    -[UINavigationController pushViewController:animated:]

提交回复
热议问题