Viewing array of pointers to structures in Visual Studio in the debugger

Posted by Fozi on Stack Overflow See other posts from Stack Overflow or by Fozi
Published on 2010-03-10T18:14:59Z Indexed on 2010/03/15 17:19 UTC
Read the original article Hit count: 251

Filed under:
|

I'm having a problem displaying the contents of a pointer array with its contents in the debugger. If I just add the pointer to the watch only the fist entry is visible. But if I add the length to it the debugger assumes that I have something like array[length][length].

PictureVS debugger

The first entry is the broken one, looks the same with ,2 or with any ,2 x. The second one is what I would like to see, but for more entries.

Edit: The two entries displayed as [x][1] are invalid.

I'm using VS 2005 but I think I had this problem on 2008 as well.

Is this a bug or am I doing something wrong?

© Stack Overflow or respective owner

Related posts about visual-studio

Related posts about debugger