Visual Studio 2010中 - 无法看到变量,而在调试值 [英] Visual Studio 2010 - can't see the value of the variable while in debug

查看:710
本文介绍了Visual Studio 2010中 - 无法看到变量,而在调试值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

之前,我习惯性的变量指向他们用来展示自己的价值。 * 强大的文本的*后,我安装了Visual Studio 2010正式版UT,我看不到变量了。
有时我会做这样的事情,看看TE变量:

Before I used to point on the variables and they used to show their values. *strong text*ut after I installed Visual Studio 2010 full version, I can't see variables anymore. Sometimes I would have to do something like that to see te variable:

String var1 = "test";
var1=var1;

请注意,我检查变量值已经初始化之后和值后已被分配。

Please note, I check variable value after it has been initialized and after the value has been assigned.

名称'buyCategory在目前情况下不存在

推荐答案

更改为调试编译和< A HREF =http://stackoverflow.com/questions/1199204/how-can-i-disable-compiler-optimization-in-c>禁用编译器优化。

这篇关于Visual Studio 2010中 - 无法看到变量,而在调试值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆