View array in Visual Studio debugger?

Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

View array in Visual Studio debugger?

Message par Clippy »

View array in Visual Studio debugger?
Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

Re: View array in Visual Studio debugger?

Message par Clippy »

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 »