如何设置断点并查找变量的值 [英] How do I set a breakpoint and find the value of the variable

查看:369
本文介绍了如何设置断点并查找变量的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何设置断点并查找要断点的变量的值?



我可以从调试菜单中切换断点。



我可以用xml导出断点数据。



我找不到断点变量的值。

How do I set a breakpoint and find the value of the variable you are breakpointing?

I can "Toggle Breakpoint" from Debug menu.

I can Export Breakpoint data in xml.

I can not find the value of the breakpointed variable.

推荐答案

要评估变量(以及您可能想要动态键入的函数,属性和任何有效表达式,请使用快速监视窗口,该窗口显示在上下文菜单中调试时的代码窗口。此外,您可以显示Watch Windows以及Locals和Immediate之一;所有这些都可以从[Main menu] => Debug => Windows中找到。



在编程前学习你的工具!



-SA
To evaluate variables (and also function, properties and any valid expressions you may want to type on the fly, use the window "Quick Watch" which appears in the context menu of the code windows when you are in debugging. Also, you can show one of the Watch Windows, as well as Locals and Immediate; all of them are found from [Main menu] => Debug => Windows.

Learn your tool before doing programming!

—SA


使用f9键设置/删除断点。

或者通过鼠标点击断点区域中的左边sild来设置/删除。

设置中断前面变量线谁想要找到它的价值。

在断点执行时运行解决方案,右键单击并选择添加到监视或快速监视显示变量值的选项
Use f9 key to set/remove break point.
Or set/remove with mouse click on left sild in breakpoint area.
set break in front of variable line who's value to want to find.
run the solution when breakpoint execute ,right click and choose add to watch or quick watch option that will display variable value


这篇关于如何设置断点并查找变量的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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