[c++] View array in Visual Studio debugger?

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

This question is related to c++ visual-studio arrays view debugging

The answer is


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.

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


Similar questions with c++ tag:

Similar questions with visual-studio tag:

Similar questions with arrays tag:

Similar questions with view tag:

Similar questions with debugging tag: