开发者

Visual C++ 2008: debugging data behind pointer array

开发者 https://www.devze.com 2023-01-15 17:17 出处:网络
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

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

精彩评论

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