Xcode调试器有时不显示变量值? [英] Xcode debugger sometimes doesn't display variable values?
问题描述
任何人都可以解释?
最常见的原因是您尝试调试通过优化启用编译的代码和/或没有调试符号。通常情况下,这是因为您尝试调试发布版本而不是调试版本,但如果您对调试版本设置进行了不当的更改,那么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屋!