Visual Studio Debugger没有进入未使用的变量声明 [英] Visual Studio Debugger doesnt step into unused variable declarations

查看:157
本文介绍了Visual Studio Debugger没有进入未使用的变量声明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

调试器不想进入未使用的变量。如果我声明(var x =hola),它不会识别 x 并且说它不存在于当前的上下文中。当我使用 x 做一些工作时,它会识别它。

解决方案

该代码可能被编译器优化了...
如果您关闭优化,您可能可以进入它。


The debugger does not want to step into an unused variable. If I declare (var x = "hola") it doesn't recognize x and says that it doesn't exist in the current context. When I do some work with x then it recognizes it.

解决方案

That line of code is probably optimized away by the compiler... You might be able to step into it if you turn off optimizations.

这篇关于Visual Studio Debugger没有进入未使用的变量声明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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