Xcode有看窗口吗? [英] Does Xcode have a watch window?

查看:109
本文介绍了Xcode有看窗口吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xcode是否有变量的观察窗口?它有一个局部变量的窗口,但是当我想观看一个全局值的时候,这不是很有帮助。

Does Xcode have a watch window for variables? It has a window for local variables but that's not much help when I want to watch the value of a global.

我已经被VisualStudio弄坏了, / p>

I've been spoiled by VisualStudio, I know.

推荐答案

解决!在局部变量窗口中右键单击将显示Watch Expression的菜单选项。键入你的变量名,现在你正在看你的变量/表达式。

Solved! Right-clicking in the local variables window brings a menu option of "Watch Expression". Type your variable name and now you are watching your variable/expression.

表达而不是更熟悉的变量的语言扔了我一下。当我的术语错误时,很难找到解决方案。似乎很明显。

The language of "expression" instead of the more familiar "variable" threw me quite a bit. Hard to search for a solution when I have the terminology wrong. Seems obvious now.

这篇关于Xcode有看窗口吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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