Visual Studio 2013 在调试时停止显示变量值 [英] Visual Studio 2013 stopped showing variable values when debugging

查看:40
本文介绍了Visual Studio 2013 在调试时停止显示变量值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我最近启动的一个特定项目中,调试器开始表现得很有趣.当我调试并在断点处暂停时,不显示数据提示,局部变量和自动窗口中不显示某些变量值,并且局部变量窗口中有一些名称奇怪的变量(以CS"开头的那些.其他的是我的变量):

In a particular project I recently started the debugger started acting funny. When I'm debugging and it is paused at a breakpoint, Data Tips don't show up, some of the variable values don't show up in the Locals and Autos windows, and there are some strangely named variables in the Locals window (the ones starting with "CS". The other ones are my variables):

我终其一生都无法弄清楚这个项目与我的其他项目有何不同.我在 Windows 8.1 中运行 Visual Studio 2013.该项目是一个 Windows Phone 8 项目,唯一添加的引用是 Fody、PropertyChanged.Fody、HttpClient 等和 JSON.net.

I can't for the life of me figure out what is different about this project than my other ones. I'm running Visual Studio 2013 in Windows 8.1. The project is a Windows Phone 8 project, with the only added references being Fody, PropertyChanged.Fody, HttpClient et alius, and JSON.net.

任何帮助将不胜感激.

推荐答案

我在这里遇到了同样的问题(也使用 windows 8.1 和 VS 2013)

I had the same problem here (also using windows 8.1 and VS 2013)

要修复它,您需要在 VS Tools 中打开 |选项 |调试器 |General 并启用标志 [Use Managed Compatibility Mode],这实质上为您提供了 VS 2012 函数评估行为.

To fix it you need to open in VS Tools | Options | Debugger | General and enable the flag [Use Managed Compatibility Mode], which essentially gives you the VS 2012 function evaluation behavior.

参考:http://weblog.west-wind.com/posts/2013/Nov/21/Visual-Studio-2013-Could-not-evaluate-Expression-Debugger-Abnormality

这篇关于Visual Studio 2013 在调试时停止显示变量值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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