I am using working on a c++ application in Visual studio 2008
I have built my project with Maximize speed(/o2) (From Properties -> configuration properties -> c/c++ -> optimization -> optimization)
Unable to watch the variable values while debugging the code. Pls help.
I am using working on a c++ application in Visual studio 2008 I have
Share
This is normal. Once you activate optimizations, the compiler pretty much ignores all your variable requests and tries to do what it thinks is best.
There’s a reason why the debug builds have no optimizations enabled 🙂
Edit: You might have some luck with enabling or disabling optimizations for specific bits of code. Try this link: http://msdn.microsoft.com/en-us/library/chh3fb0k(VS.80).aspx