Visual Studio 2015调试:无法扩展局部变量? [英] Visual Studio 2015 Debugging: Can't expand local variables?

查看:181
本文介绍了Visual Studio 2015调试:无法扩展局部变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio 2015预览,我正在尝试调试我的项目。我以前使用过VS 2012,主要取决于能够将鼠标悬停在其上并扩展本地变量以查看其值。我现在在2015年这样做,但是当我将鼠标悬停在一个变量上时,显示的框只会显示(局部变量)Classname variablename(例如(局部变量)String title)。没有展开按钮,它不会在框中显示变量的值。



有没有一个设置,我必须改变才能将鼠标悬停在变量上并展开?

解决方案

这可能是一个错误。


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调试:无法扩展局部变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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