开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜