美文网首页
XCode 调试器不显示变量值解决方案

XCode 调试器不显示变量值解决方案

作者: UnsanYL | 来源:发表于2017-09-07 20:30 被阅读0次

问题描述:


image.png

正常情况下,变量值是可以点开看详细内容的,之前个人不知道什么时候突然间变成了上图的情况,折腾了好久终于解决了。由于google上解决办法很多种,我自己是试到第四种才顺利解决,这里记录一下。

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

相关文章

网友评论

      本文标题:XCode 调试器不显示变量值解决方案

      本文链接:https://www.haomeiwen.com/subject/mzhwjxtx.html