PDA

View Full Version : Unable to trace local variable value in Debug mode



jack249
16th January 2013, 02:40
In Debug mode, when the program stop at the breakpoint i set, i want to trace the value in a local variable (which is a struct named profile).
However, I found 2 variables in the Local and Expressions window which are profile and profile@1.
When I step over the code, the 2 variables value does not update in Local and Expressions window.
How can I avoid the this happen?

zgulser
16th January 2013, 14:34
Hi,

What are you using as a compiler? If you are using VS(your's is probably 2010 or later version), then it's the issue of VS. There are open threads on the web regarding this problem and an updated service pack which is released to overcome the problem. Personally, I had the same problem before and the updated service pack didn't solved my problem precisely.

amleto
17th January 2013, 23:48
because you need MS debugging tools to get debug info in Qt creator (if using MS compiler).