Monthly Archives: May 2012
Solution for Pointer Content Bug in Netbeans 7.1
Posted by Godhc
Using Netbeans 7.1
I had a pointer variable declared as
int **nodes
As program continued ,i allocated size on the fly and at a point i needed to watch the contents of this pointer (as an array of values)
The watch pane of Netbeans does not reflect the values
SOLUTION:
Create a watch with *nodes@22
where you want to watch all the values in nodes[22][]
Attached Screenshot for reference
in the picture 1st three rows reflect the bug
and post that row is the solution ! Happy Debugging!!!!
Note: For n00bs , you can add a Watch in Variables too !!!
