code blocks: how add a variable to watches window?

i have these varaiable:
button btnarray[8]
button have getTop() member. how can i add it to watches window and show it's value?
after more search, i found what i needed. i must go to getTop class member and mark the intTop value for test it ;)
Topic archived. No new replies allowed.