User forums > Using Code::Blocks

debuging the code: how add variables and arrays objects to watches window?

<< < (2/5) > >>

oBFusCATed:
You have add a watch for btnarray.getTop() or btnarray and then inspect the raw values.

cambalinho:
i did. but where is the values i get these string 'not avaiblable' or something like these

oBFusCATed:
Have you read this: http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks ?
Does it work with simple local variables?

cambalinho:
finally i get the point.
i must go to getTop() class member and test the intTop value.
thanks for all

cambalinho:
another question: i can use OutputDebugString() function, but how can i see it's value\string?
(i'm trying, in hard way, learn more about debuging)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version