Xcode调试器有时不显示变量值? [英] Xcode debugger sometimes doesn't display variable values?

查看:98
本文介绍了Xcode调试器有时不显示变量值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这种情况经常发生在我身上。例如,现在我有一个方法中的断点停止调试器。 。 。并且它根本没有显示任何变量值。其他时候,它会显示一些但不是其他的。



任何人都可以解释?

解决方案

最常见的原因是您尝试调试通过优化启用编译的代码和/或没有调试符号。通常情况下,这是因为您尝试调试发布版本而不是调试版本,但如果您对调试版本设置进行了不当的更改,那么Debug版本也可能会发生。



另一个不太常见的可能性是你已经把堆栈搞定了。


This happens to me pretty often. For example, right now I have the debugger stopped at a breakpoint in a method . . . and it isn't displaying any variable values at all. Other times, it displays some, but not others.

Can anyone explain?

解决方案

The most common reason for this is that you're trying to debug code compiled with optimisation enabled and/or no debug symbols. Typically this will be because you're trying to debug a Release build rather than a Debug build but it can also happen with Debug builds if you've made inappropriate changes to the Debug build settings.

Another less common possibility is that you've hosed the stack.

这篇关于Xcode调试器有时不显示变量值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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