视觉工作室2012 - 当地人消失了 [英] Visual studio 2012 - locals have disappeared

查看:142
本文介绍了视觉工作室2012 - 当地人消失了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在调试VS2012时,我发现我无法再访问变量值:




  • 本地窗口不显示任何内容)。

  • Watch窗口告诉我无法评估表达式的任何表达式(如下图)。我个人最喜欢的是它不能评估 true

  • 任何变量的鼠标悬停都不会显示任何值工具提示。 / li>




我试过的内容:



重新启动Visual Studio

重新启动计算机



检查加载的模块是否显示调试符号加载



卸载我昨天安装的TeamCity插件



查看工具/选项/调试任何明显的事情(并禁用其他已经正常工作的扩展)



编辑:我也试过创建一个新的解决方案。我也注意到,调用堆栈显示了几条空白行,我假设应该是外部方法名称(如上图) - 我不知道是否这是相关的,但值得一提。

解决方案

我最终设法将自己排除在外 - 我会在这里给出我的解决方案,以防其他人有同样的问题:



我发现在Tools-> Options-> Debugging-> Symbols中指向一个旧的NuGet符号服务器。不知何故,错误的符号服务器看起来像是占用了整个本地和立即窗口系统。



更新符号服务器修复了我的问题。


While debugging VS2012 I have found that I can no longer access variable values:

  • The Locals window does not show anything (pictured below).
  • The Watch window tells me "Unable to evaluate the expression" for any expression (also pictured below). My personal favourite is that it cannot evaluate true.
  • And mousing-over any variable does not show any values tool-tip.

What I've tried:

Restarting Visual Studio

Restarting my computer

Checking that the loaded modules shows debug symbols are loaded

Uninstalling the TeamCity plugin that I installed yesterday

Looking under Tools/Options/Debugging for anything obvious (and disabling other extensions that had been working fine)

EDIT: I've also tried creating a new solution.

I've also noticed that the call stack shows several blank lines where I presume there are supposed to be external method names (pictured above) - I'm not sure if this is relevant, but it is worth mentioning.

解决方案

I've eventually managed to sort this out by myself - so I'll give my solution here in case anyone else has the same problem:

I found that in Tools->Options->Debugging->Symbols was pointing to an old NuGet symbol server. Somehow a wrong symbol server looked like it was taking down the entire Locals and Immediate Window systems.

Updating the symbol server fixed my problems.

这篇关于视觉工作室2012 - 当地人消失了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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