简体   繁体   English

在VS2008中调试2D阵列

[英]Debugging a 2D array in VS2008

I have a 2D array which contains height information. 我有一个2D数组,其中包含高度信息。 I want to see it in the debugger to a certain point if the values are correct. 如果值正确,我想在调试器中看到它。 I know we can see a 1D array using "myArray,5", but it doesn't work when i write "myArray,5,5" or "myArray[0],5", without the quotation marks. 我知道我们可以使用“ myArray,5”看到一维数组,但是当我写“ myArray,5,5”或“ myArray [0],5”时如果没有引号,则它不起作用。

Does anybody know how to do this? 有人知道怎么做这个吗? Or is this even possible? 还是有可能吗?

As first, you can view memory block contents at specified address (myArray). 首先,您可以查看指定地址(myArray)上的内存块内容。

As second you can mouseover your array, and from pop-up menu show array members. 第二,您可以将鼠标悬停在阵列上,并从弹出菜单中显示阵列成员。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM