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

后端 未结 8 1710
走了就别回头了
走了就别回头了 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:53

    Goto Project -> Targets -> Build Setting -> Optimisation Level -> Debug and set value to whatever u want

    0 讨论(0)
  • 2020-12-28 15:54

    I was still finding this an issue in the final release of XCode 7.0. It turns out my bridging header needed updating as one of the references was no longer needed in it.

    I found that out by using 'po' in the debugger for one of the variables, e.g. 'po self.views'. The debugger then listed all the errors in the bridging header for me. Weird way to find out the problem but it worked.

    EDIT: And just in case do a clean build after fixing any issues

    0 讨论(0)
提交回复
热议问题