Visual C++ 2008: debugging data behind pointer array
How can I see data behind a pointer to an a开发者_如何学JAVArray more than the first item in Visual Studio 2008? It would be so useful to see arbitrary amount of items, not just the first one.
char* p = new char[100];
Type in the Watch window:
p, 100
To expand on Alex's answer (and maybe get myself a few more votes :) ), here is the full list of debugger window format specifiers.
精彩评论