How to View Pointer as Array in Visual Studio Code


It is irritating when you have to write and memorize this syntax in the middle of debugging, but let me just put it in here for future use:

*mypointer@10

Replace mypointer with your pointer name, and replace 10 with how much array you want to view.

The ,h at the end is for showing the value as hex, it’s optional. 🙂

Good to read: https://github.com/Microsoft/vscode-cpptools/issues/172


Leave a Reply

Your email address will not be published.