Xcode 7 beta debugger not showing values of variable at breakpoint for Swift code

后端 未结 8 1764
走了就别回头了
走了就别回头了 2020-12-28 15:30

I have tried the answers from question here but none of them helped :(

I have installed Xcode 7 beta 5 and the debugger will not show values of variables when debugg

8条回答
  •  抹茶落季
    2020-12-28 15:52

    This may be due to a problem in the bridging file between Swift and Objective-C, e.g the file {projectName}-Bridging-Header.h . To make sure about that:

    1- add a breakpoint at the place you want to debug.

    2- After the breakpoint is reached, write the lldb command po on any object in the xCode debugging output window. for example :

    po self.view
    

    If there is a problem you should see it's log and hopefully you can go and fix it

提交回复
热议问题