I can't see the variable value in the Watch view  
Author Message
Vivienne.Zhou





PostPosted: Visual C++ General, I can't see the variable value in the Watch view Top

I am using visual stutio 2005 on windows XP sp2 platform.

it happened to me that I can't see the variable value in the watch view, though I can see the value when I use "cout<<" to print it on the screen. In the watch view, there are always errors, said: symbol *** not found. I am quite sure I didn't make misstake in spelling the variable name, but why I get these errors

It really cause problems in debugging.

can someone help me

Thank you!



Visual C++3  
 
 
einaros





PostPosted: Visual C++ General, I can't see the variable value in the Watch view Top

Make sure you are running the debug build, and that there are no optimizations enabled for this build (Hit ALT+F7, go to Configuration Properties -> C/C++ -> Optimization).

You can also try adding a breakpoint within the variable's scope, open the Command Window and enter variablename<enter>.



 
 
Vivienne.Zhou





PostPosted: Visual C++ General, I can't see the variable value in the Watch view Top

Thank you very much.

I have solved the problem following your instruction.