Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经声明了一个数组,如下所示:
int *arr;
在 Visual Studio 中是否有任何方法可以在调试时观察数组的所有元素,而不必手动放置观察元素 *(arr+1)、*(arr+2) 等。
如果arr是一个指向十个整数数组的指针,您可以将“ arr,10”添加到监视窗口,当您展开它时,它将显示十个元素[显然,您可以用10数组的长度替换 ]。
arr
arr,10
10
您可以在该地址上创建一个内存窗口 - 将显示所有内容。