debugging issues
-
My program shuts down at the same point always and when I debug it takes me to this statement in my program: vectorB = sqrt(xcoord1[n][layer]*xcoord1[n][layer] + ycoord1[n][layer]*ycoord1[n][layer]); in the variables window I see that vector B is 1.#INF000000000 so I'm trying to look at the values for my 2 dimensional arrays with the watch window. How can I look at the entire array...I know I can look at individual elements by typing xcoord1[34][3] or something like that? But I need to see all the elements. What do I type for this?
-
My program shuts down at the same point always and when I debug it takes me to this statement in my program: vectorB = sqrt(xcoord1[n][layer]*xcoord1[n][layer] + ycoord1[n][layer]*ycoord1[n][layer]); in the variables window I see that vector B is 1.#INF000000000 so I'm trying to look at the values for my 2 dimensional arrays with the watch window. How can I look at the entire array...I know I can look at individual elements by typing xcoord1[34][3] or something like that? But I need to see all the elements. What do I type for this?
Try to type xcoord1,10 instaed of xcoord1[34][3] in the watch window, then you can see the first 10 values of xcoord. Not exactly what you wanted, but it might help... - Anders Money talks, but all mine ever says is "Goodbye!"
-
My program shuts down at the same point always and when I debug it takes me to this statement in my program: vectorB = sqrt(xcoord1[n][layer]*xcoord1[n][layer] + ycoord1[n][layer]*ycoord1[n][layer]); in the variables window I see that vector B is 1.#INF000000000 so I'm trying to look at the values for my 2 dimensional arrays with the watch window. How can I look at the entire array...I know I can look at individual elements by typing xcoord1[34][3] or something like that? But I need to see all the elements. What do I type for this?
I find the easiest way is to use the TRACE macro and loop through the values in the array. Its a little bit of an old fashioned debugging technique but I've always found trying to view arrays in the debugger as rather hard work. Michael :-) Communication is the first step towards enlightenment.