If you have a statically allocated array, the Visual Studio debugger can easily display all of the array elements. However, if you have an array allocated dynamically and pointed to by a pointer, it will only display the first element of the array when you click the + to expand it. Is there an easy way to tell the debugger, show me this data as an array of type Foo and size X?
C++ – How to display a dynamically allocated array in the Visual Studio debugger
cdebuggingvisual studio
Related Topic
- How does free know how much to free
- Git – .gitignore for Visual Studio Projects and Solutions
- C# – How to remedy “The breakpoint will not currently be hit. No symbols have been loaded for this document.” warning
- Visual-studio – Difference between Build Solution, Rebuild Solution, and Clean Solution in Visual Studio
- Visual-studio – How to auto format code in Visual Studio
- C# – Writing to output window of Visual Studio
- Php – Reference – What does this error mean in PHP
Best Answer
Yes, simple. say you have
writing in the debugger:
would show you the content as if it were an array.