Solution for Pointer Content Bug in Netbeans 7.1

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


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 !!! 😀


netbeans bug.jpg


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s