[英]What is the best way to visualize a DataTable while debugging?
I have some very big DataTable
s, which I need to see their content while debugging. 我有一些很大的DataTable
,在调试时需要查看它们的内容。
Is there a better way to do that other than opening the Column
s' and row
s' lists Properties in the Watch panel? 除了在“监视”面板中打开“ Column
”和“ row
”列表属性之外,还有更好的方法吗?
Thanks. 谢谢。
Use the DataTable visualizer; 使用DataTable可视化工具; hold your mouse over the variable and click on the magnifying glass this will open the DataTable visualizer. 将鼠标悬停在变量上,然后单击放大镜,这将打开DataTable可视化器。
Btw, there are more VS2010 visualizers for other actions. 顺便说一句,还有更多的VS2010可视化工具可用于其他操作。 I really like the WPF Tree visualizer: hold your mouse on a WPF control and click the magnifying glass ;-) 我真的很喜欢WPF树可视化工具:将鼠标放在WPF控件上,然后单击放大镜;-)
Open the DataSet visualizer . 打开数据集可视化器 。 Either hover over the variable in the source code or look at one of the variables in a debugger window (Locals, Auto, etc.) Then click the magnifying glass. 将鼠标悬停在源代码中的变量上,或在调试器窗口中查看变量之一(Locals,Auto等),然后单击放大镜。
MSDN article on How to Use a Visualizer . 有关如何使用Visualizer的 MSDN文章。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.