XCode 7 beta调试器在断点处没有显示swift代码的值 [英] XCode 7 beta debugger not showing values of variable at breakpoint for swift code

查看:107
本文介绍了XCode 7 beta调试器在断点处没有显示swift代码的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尝试了

解决方案

我仍然在XCode 7.0的最终版本中发现这个问题。原来我的桥接头需要更新,因为其中一个引用不再需要。



我发现在调试器中使用po变量,例如'po self.views'。调试器然后列出所有的错误rs在我的桥接头。



编辑:为了防止在修改任何问题后做一个干净的构建


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 debugging swift code. It works fine in Obj-C code.

I have tried changing the Compiler Optimisation level to None and it had not effect. Any ideas?

解决方案

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

这篇关于XCode 7 beta调试器在断点处没有显示swift代码的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆