0
Answer

can not obtain local variable value in Visual Studio 2008

George George

George George

16y
4.1k
1

Hello everyone,


When remote debugging a release version binary on a remote machine using Visual Studio 2008, there is error message from local host machine in Visual Studio when I try to see some local variable values.

The error message is (1st message is displayed when my mouse stops at the variable in Locals, the 2nd message is what is displayed when I pressed refresh button for the specific local variable),

--------------------
The value for this item is stale dues to a problem that occured while evaluating it. Hover your cursor over the refresh button for details.

newNumbers Cannot obtain value of local or argument 'newNumbers' as it is not available at this instruction pointer, possibly because it has been optimized away. int
--------------------

Such issue only happens with release version, debug version is fine. Any ideas how to solve this? I need to debug release version.


thanks in advance,
George