xcode - 如何在 Xcode 的调试检查器中显示变量值

标签 xcode debugging

刚接触 Xcode,但我想检查 Xcode 检查器中变量的值,如下所示,buttonFrame 具有 originsize 属性,但它们没有显示在检查器中,有办法显示吗?

enter image description here

最佳答案

这里真正的解决方案是使用 Debug模式而不是 Release模式来将应用程序构建到设备,以更改模式:

project -> scheme -> check the target -> edit scheme -> run -> select the debug mode in the drop-down selector

关于xcode - 如何在 Xcode 的调试检查器中显示变量值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45456579/

相关文章:

ios - 如何将 swift 对象传递给 javascript (WKWebView/swift)

c++ - WinRT组件: C1189: #error: "No Target Architecture"

c++ - Atmel Studio 7 如何编译和调试 Arduino 代码?

xcode - 使用Xcode测试为Objective-C++代码库设置单元

ios - UIButton图像已按下和未按下

iphone - 我的应用程序在iTunes中可用,但在iPod的搜索中不可用

swift - 如何摆脱这些警告?

android-studio - 更新到 Android Studio 4.2.1 后如何修复错误 "Could not connect to remote process. Aborting debug session."

c++ - ELF 文件中的 resolve 函数如何知道符号在哪些库中?

c++ - 我们如何调试在 C++ 应用程序中使用的 matlab 制作的 DLL?