Visual Studio 2010中的多行监视窗口? [英] Multi-Line Watch Window in Visual Studio 2010?

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

问题描述

调试XML时,经常不停地单击监视"窗口中的文本/XML"可视化器以查看XML字符串变量的完整值是一件很痛苦的事情. Visual Studio中的监视"窗口似乎仅限于一行.

When debugging XML, it's a pain the butt to constantly click on the Text/XML visualizers in the Watch Window to see the full value of an XML string variable. The "Watch" windows in Visual Studio seem to be constrained to one line.

是否有一种方法可以在调试时不断监视"多行变量的值?我想不必一定要在监视窗口中,但是我想查看XML字符串的值,并且可视化器框是模态的.

Is there a way to constantly "watch" the value of a multi-line variable when debugging? Doesn't have to be in a watch window i suppose, but I want to see the value of an XML string, and the visualizer boxes are modal.

推荐答案

它不是很漂亮,但是我要解决的一种方法是将字符串地址放在一个内存窗口中,该窗口可以显示文本字符.从调试"菜单中打开一个内存窗口:"Debug \ Windows \ Memory".然后,您可以输入地址或变量名称,或者双击变量并将其拖动"到内存窗口的地址字段.

It's not very pretty, but one way I have dealt with that is to put the string address in a memory window, which can show text characters. Open one of the memory windows from the Debug menu: Debug\Windows\Memory. You can then type in the address or the variable name or just double click on the variable and "drag" it up to the address field of the memory window.

这篇关于Visual Studio 2010中的多行监视窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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