Xcode 4中的表达式窗口在哪里? [英] Where is the expression window in Xcode 4?

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

问题描述

如何在Xcode 4中添加要观看的表达式?

How can I add an expression to watch in Xcode 4?

这应该是非常明显的,但它不是。它似乎没有被关闭任何菜单或上下文单击可用。如果我可以突出显示一个变量或表达式,然后添加观察或添加表达式将是很好的。

This should be very obvious, but it is not. It does not seem to be down any menu or available on a contextual click. It would be nice if I could highlight a variable or expression and then "Add to watch" or "Add expression".

推荐答案

我不知道可以直接从Xcode 4的代码窗口创建一个手表表达式。如果代码窗口中有某些东西需要添加表达式表,我想你必须将该代码复制到剪贴板。

I don't know that there is an option to create a watch expression directly from Xcode 4's code window. If there's something in the code window you'll want to add an expression watch for, I think you'll have to copy that code to the clipboard.

然后调试,确保正在显示调试区域。它是Xcode的底部中心视图。您可以通过从调试视图中单击适当的视图图标来显示此区域。

Then while debugging, make sure the debug area is being shown. It is the bottom center view in Xcode. You can show this area by clicking the appropriate view icon from the debug view.

然后在调试区域的左下方,您有您的监视列表。您可以通过右键单击并选择添加表达式添加一个表达式:

Then in the lower left of the debug area, you have your watch list. You can add an expression to this list by right-clicking and selecting Add Expression:

右键添加表达式http://blog.roughfalls.com/non-wp/img/xcode4_addexpression.png

选择此选项后,会出现一个对话框。您可以将复制到剪贴板的表达式粘贴到此对话框中,然后单击添加。观察表情在列表中表示,左边有一个小的E图标。

After you select this option, a dialog appears. You can paste the expression that you copied to the clipboard into this dialog, and click "Add." Watch expressions are denoted in the list with a small "E" icon to their left.

这篇关于Xcode 4中的表达式窗口在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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