Debugger : watching data members or arrays
I always find it hit and miss adding watches that work when they are in arrays and or array members of classes, sometimes the debugger obliges and gives me an expandable tree showing changes to all the data members but sometimes it says they are not in current context, also with arrays it is same, especially 2d arrays. I dont know what to tell it to watch for example when i want to see the changes to the integer 'areatype' below >
if this is in a loop counting through all the down and across values and accessing each < object[n][n].datamember > as it goes how can i watch the data members that are being referenced on each loop? I have tried using 'watch as array' but it doesnt seem to make much difference in my attempts so far.
I am using CODE::BLOCKS by the way