问题描述
我正在使用 Visual Studio 2015 预览版,并且正在尝试调试我的项目.我之前使用过 VS 2012,主要依赖于能够悬停并展开局部变量以查看它们的值.我现在正在 2015 年尝试这样做,但是当我将鼠标悬停在一个变量上时,显示的框只显示(局部变量)类名变量名"(例如(局部变量)字符串标题").没有展开按钮,也没有在框中显示变量的值.
是否需要更改设置才能将鼠标悬停在变量上并展开它们?
这可能是一个错误.请
I'm using Visual Studio 2015 preview, and I'm trying to debug my project. I was using VS 2012 previously, and depended largely on being able to hover over and expand local variables to look at their values. I'm trying to do this in 2015 now, but when I hover over a variable, the box that shows up only says "(local variable) Classname variablename" (e.g. "(local variable) String title"). There is no expand button, and it doesn't show the value of the variable in the box.
Is there a setting I have to change in order to be able to hover over variables and expand them?
It might be a bug. Please file a Connect bug with a repro if you have one.
In the meantime, you might be able to workaround the problem by setting the debugger options to use the legacy debug engine: Tools -> Options -> Debugging -> General: check both "Use the legacy C# and VB expression evaluators" and "Use Managed Compatibility Mode".
That workaround has worked for me every time. But please, do still file the bugs!
这篇关于Visual Studio 2015 调试:不能扩展局部变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!