在调试时,我在使用Watch:C#编译器中的内部错误时得到了此信息 [英] While debugging I get this when using Watch: Internal error in the C# compiler

查看:206
本文介绍了在调试时,我在使用Watch:C#编译器中的内部错误时得到了此信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS2017中的一个应用程序中一直非常愉快地工作.调试就好了.然后,突然...

I've been working along very happily in an app in VS2017. Debugging just fine. Then, all of a sudden...

当我调试并尝试将鼠标悬停在变量上时,我没有看到包含对象详细信息的常规弹出窗口.如果我将它放在Watch中,我会得到它的价值:

When I am debugging and try to hover over a variable, I don't get the normal popup with details of the object. And if I put it in the Watch, I get this for the value:

C#编译器内部错误

Internal error in the C# compiler

我关闭并重新打开VS,然后重新启动.仍然会出现相同的错误.

I closed and re-opened VS, then I rebooted. Still get the same error.

关于此的内容很少.有人看过吗?

There is very little about this out there. Has anyone ever seen this before?

推荐答案

找到了答案

请查看菜单工具->选项>调试>启用使用托管 兼容模式,然后调试您的转储文件,如何 结果?

Please view menu Tools-> Options > debugging > enable Use Managed Compatibility Mode, and then debug your dump file, how about the result?

不知道它为什么起作用然后突然停止.但是,现在又可以正常工作了.

No clue why it was working and then suddenly stopped. But, it's working again now.

在以下时间过长修改:

这最近得到了好评,因此问题仍然存在,潜伏着.我应该补充一点,在此解决方案解决了问题之后,它很快又回来了,我无法尝试摆脱它.我最终完全删除了VS的所有痕迹,然后重新安装,这几乎花了一整天的时间.

This recently got an upvote, so the problem is still out there, lurking. I should add that after this solution solved the problem, it soon came back and nothing I could try got rid of it. I ended up totally removing all traces of VS and re-installing it, which pretty much took all day.

编辑LONG LONG之后:

即使在卸载并重新安装VS之后,问题最终还是再次出现.这次,我将笔记本电脑带到了雇主的服务台团队,他们最终只是给了我一台新笔记本电脑.

Even after uninstalling and re-installing VS, the problem eventually came back. This time I took my laptop to my employer's helpdesk team and they ended up just giving me a new laptop.

如果那不是您的选择,请上帝帮助您,因为我不知道.我在各种MS论坛上都发现了一些与此相关的话题,而MS员工总是以无法复制"来关闭它们.

If that's isn't an option for you, may God help you, because I have no idea. I found some threads about this on various MS forums, and the MS employees always just close them with "not able to reproduce".

这篇关于在调试时,我在使用Watch:C#编译器中的内部错误时得到了此信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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