如何在代码上添加快速监视 [英] How to add quick watch on the code

查看:85
本文介绍了如何在代码上添加快速监视的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



有人能告诉我如何在代码中添加手表或快速手表......我的IDE-Visual Studio 2010 Ultimate ..



提前预付

hi folks,

Can anybody tell me how to add watch or quick watch into the code...My IDE-Visual Studio 2010 Ultimate..

Thanxx in advance

推荐答案

嘿那里,



调试时,在快速监视中选择您想要的代码,然后按Shift + F9 :)



干杯。



Azee ...
Hey there,

While debugging, select the code that you want in the Quick Watch and press Shift + F9 :)

Cheers.

Azee...


了解QuickWatch [ ^ ](带图片和快捷方式)



FYI Visual Studio中的高级调试 [ ^ ]
Understanding QuickWatch[^](With pictures & shortcuts)

FYI Advanced Debugging in Visual Studio[^]


Watch窗口是一个对象,允许您监视变量(或许多)的值变量)保存(或拥有)方法的各个部分。



首先,在不产生所需结果的方法上插入断点。现在,开始Step Over(F10);一旦你到达变量然后通过单击鼠标选择它,



现在点击shift + F9打开QuickWatch窗口。它显示所选变量的值。在这里,我们可以重新评估当前变量或手动输入不同的表达式。
The Watch window is an object that allows you to monitor the values that a variable (or many variables) holds (or have) in various parts of a method.

First, you insert a breakpoint over the method that doesn’t produce the desired result. Now, start Step Over(F10); once you reach the variable then select it by clicking the mouse,

Now hit shift+F9 for opening the QuickWatch window. It displays the values of the selected variable. Here, we can reevaluate the current variable or manually enter different expressions.


这篇关于如何在代码上添加快速监视的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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