I’m debugging my c++ code in Visual Studio 2010 and want to see the content of my array, say Q, which is 17×17. When I insert a breakpoint and try to debug, I see only the variable “Q”. When I take it to the “Watch” screen and rename it to “Q,17”, I see one level down.
But I want to see the other dimension,too. I can’t write “Q,17,17”. What is the proper command?
Thank you…
You can’t, at least not directly.
What you can do is put
&array[0][0]in the memory window, and then resize it so the number of columns matches one row ofarraydata.Alternatively, you can put
array[0],17in the watch window, and then repeat it forarray[1],17, etc.Not the answer you were looking for perhaps, but the watch window, while pretty powerful, just can’t do what you want.