OK. I'm at a breakpoint in the debugger and now I want to examine the values stored in my arrays. How do I get Visual Studio debugger to show me the data in the arrays? I don't want to see just one value at a time; I want to see the values contained in array indices [100] to [199] for example.
Surely there has to be an easy way to do this. I've been doing it since the 90's in the Borland IDE and since the 80's on VAXs.
And while I'm at it, is there any way that I can plot data from arrays while in the debugger like you can in Matlab?
2007-10-05
03:59:48
·
4 answers
·
asked by
dogsafire
7
in
Computers & Internet
➔ Programming & Design
When I call up a QuickWatch it shows me only the first element in the array. Is there a way to ask for more elements, specifically, a particular range of array elements?
2007-10-05
04:47:40 ·
update #1
I'm using Visual Studio 2005 Version 8, SP 1
2007-10-05
04:49:24 ·
update #2
I forgot an important piece of info - These are float pointers that I'm trying to dereference, not fixed-length arrays.
The way it worked in the Borland debugger is that you clicked on an variable name and provided an index and range. The debugger would go to the address of the variable, offset by the index (based on the size of the variable type being examined) and interpret the next [range] values in the format of the type of the variable being examined.
It didn't care what was in memory there, it simply interpreted the contents of the addresses as the same type as your variable. If you got garbage, it was because 1) your array contained garbage or 2) you had asked for data beyond the end of your array. Even garbage provided useful feedback.
You could even cast the variable to a different type and the debugger would reinterpret the memory addresses in the desired type.
Doesn't Microsoft use array pointers? Surely they do some level of debugging
... don't they?????
2007-10-05
05:05:26 ·
update #3