在Visual Studio调试器查看阵列? [英] View array in Visual Studio debugger?

查看:105
本文介绍了在Visual Studio调试器查看阵列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以查看Visual Studio调试器的阵列?快速监视仅示出了阵列的第一个元素

Is it possible to view an array in the Visual Studio debugger? QuickWatch only shows the first element of the array.

推荐答案

您可以尝试对C这个漂亮的小把戏++。就拿前pression,让你的数组,然后附加一个逗号,你希望看到的元素数量。扩大该值将显示内容0-(N-1),其中N是您在逗号后添加的号码。

You can try this nice little trick for C++. Take the expression which gives you the array and then append a comma and the number of elements you want to see. Expanding that value will show you elements 0-(N-1) where N is the number you add after the comma.

例如,如果粒子阵列是数组,键入粒子阵列,10 在监视窗口。

For example if pArray is the array, type pArray,10 in the watch window.

这篇关于在Visual Studio调试器查看阵列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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