View array in Visual Studio debugger?

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

View array in Visual Studio debugger?

Message par ForumBot »

View array in Visual Studio debugger?
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: View array in Visual Studio debugger?

Message par ForumBot »

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.
Répondre

Revenir à « Visual Studio & VS Code »