vc71 debugger: visualizing arrays

Started by
2 comments, last by thedustbustr 18 years, 4 months ago

int max=10;
int* array = new int[max];
for(unsigned int i=0;i<max;++i) array=i;
Is there an easy way to have the debugger output the contents of the entire array in the locals window instead of just *array (i.e. array[0])? Is this possible for STL containers also?
Advertisement
You can't do it with STL containers, not in VS7 by default, although i did once install a plug in to display it.

Dave
To view the contents of an array you can type this in a watch window:

array, N

N in this case is the number of indices you want to view. With an STL vector you could do this:

vector._Myfirst, N

Let me know if this helps.
Thanks cquinones, that worked.

Dave, what plugin?

This topic is closed to new replies.

Advertisement