获取“表达式评估器中的内部错误"在“添加手表"上尝试调试 WCF 服务代码时的功能(MSVS 2013) [英] Get "Internal error in the expression evaluator" on "Add watch" function when trying to debug WCF service code (MSVS 2013)

查看:23
本文介绍了获取“表达式评估器中的内部错误"在“添加手表"上尝试调试 WCF 服务代码时的功能(MSVS 2013)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几天前,我将我的解决方案移至 MSVS 2013.它工作正常,除了一件事:当我尝试调试 WCF 服务的代码时,它工作正常,但是当我想查看任何变量的状态时,它说:内部错误在表达式评估器中".添加监视功能在客户端正常工作,但在服务代码中它坏了.我正在尝试调试在本地主机上运行的我自己的 WCF 服务.你能帮我吗,如何修复这个?

Few days ago I moved my solution to MSVS 2013. It works fine except one thing: when I trying to debug code of my WCF service it works, but when I want to watch state of any variable it says: "Internal error in the expression evaluator". Add watch function works normal on client side, but in service code it broken. I'm trying to debug my own WCF service running on the localhost. Could you help me, how to repair this?

这里是 MSVS 信息:微软 Visual Studio 专业版 2013版本 12.0.30110.00 更新 1微软 .NET 框架版本 4.5.51641操作系统:Windows 8.1

Here MSVS info: Microsoft Visual Studio Professional 2013 Version 12.0.30110.00 Update 1 Microsoft .NET Framework Version 4.5.51641 OS: Windows 8.1

推荐答案

这可能是 Visual Studio 2013 附带的新(托管)调试引擎中的错误.尝试打开托管兼容模式(有效地将其转换为 2013 年之前的调试引擎),位于工具 - 选项 - 调试:

This might be a bug in the new (managed) debug engine that ships with Visual Studio 2013. Try turning on Managed Compatibility Mode (which effectively turns it into pre-2013 debug engine), located under Tools - Options - Debugging:

如果这解决了问题,那么我建议尝试用一个小项目重现它,然后在 连接,所以它可以被修复.

If this solves the issue, then I'd suggest trying to reproduce it with a small project, and then reporting it on Connect, so it could be fixed.

@bjhuffine 在下面评论说还有其他方法可以启用兼容模式,而无需全局禁用它(例如每个项目).更多信息请访问:https:///devblogs.microsoft.com/devops/switching-to-managed-compatibility-mode-in-visual-studio-2013/

@bjhuffine comments below that there are other ways to enable compatibility mode, without globally disabling it (e.g. per-project). More information here: https://devblogs.microsoft.com/devops/switching-to-managed-compatibility-mode-in-visual-studio-2013/

这篇关于获取“表达式评估器中的内部错误"在“添加手表"上尝试调试 WCF 服务代码时的功能(MSVS 2013)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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