PDA

View Full Version : How to get the values in the Locals and Watchers in Qt??



Gokulnathvc
18th March 2011, 10:58
How to get the values in the Locals and Watchers in Qt?? Am not seeing the values of the variables during the execution time in the Locals and Watchers.. How to see the values??? Please Help me..

pan
18th March 2011, 11:28
Do you have a break point in place? running it in debug?

Gokulnathvc
18th March 2011, 11:49
Yes.. But nothing is shown in the values and i was not able to add watch also.. please help me..

ChrisW67
23rd March 2011, 08:30
Generally you can only see the content of variables in a debugger, something that Qt is not, when the program is stopped at a break point and the variables concerned are in scope. Since you have not told us what debugger you are using, whether the program is stopped at a break point, what code surrounds the break point you are stopped at, what the variables you are trying to see are, what you are actually able to see, how you are trying to set a watch... then we can hardly help any more.