本文介绍了为什么不在VS 2013中加载SOS.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS2010中使用的SOS调试扩展,但现在不能在VS2013中使用。
我想,我有任何更新或一些东西安装VS2013,对吗?

The SOS Debugging Extension that I use in VS2010, but now cannot use in VS2013.I guess, I have to any update or some stuff install for VS2013, right?

我尝试在下面的立即窗口;

I try to like below in the Immediate Window;

无效的表达式术语'。'

Invalid expression term '.'

.load C:\Windows\Microsoft.NET\Framework\v4.0.30319\SOS.dll

.load C:\Windows\Microsoft.NET\Framework\v4.0.30319\SOS.dll

意外的字符' \'

.loadC:\Windows\Microsoft.NET\Framework\v4.0.30319\SOS.dll

.load "C:\Windows\Microsoft.NET\Framework\v4.0.30319\SOS.dll"

无法识别的转义序列

.load C:\Windows\Microsoft.NET\Framework\v4.0.30319\ SOS.dll

.load C:\Windows\Microsoft.NET\Framework\v4.0.30319\SOS.dll

意外的字符'\'

.load C:/Windows/Microsoft.NET/框架/ v4.0.30319 / SOS.dll

.load C:/Windows/Microsoft.NET/Framework/v4.0.30319/SOS.dll

无效的表达式术语'。'

Invalid expression term '.'


推荐答案

自VS2012以来,这个功能一直变得脆弱,好像微软打算维护它。问题的一部分似乎是将设备驱动程序调试集成到VS中,这至少是我从。

This feature has been getting brittle since VS2012 and it doesn't exactly look like Microsoft intends to maintain it. Part of the problem appears to be integration of device driver debugging into VS, that's at least the hint I'm getting from this feedback article.

有一个设置需要打开才能获得首先要识别 .load 命令:工具+选项,调试,常规,勾选使用托管兼容模式复选框。我已经关闭了它,因为它有。

There's a setting that needs to be turned on to get it to recognize the .load command in the first place: Tools + Options, Debugging, General, tick the "Use Managed Compatibility Mode" checkbox. I had turned that off because it had undesirable side-effects.

这在我的机器上仍然没有帮助(可能是一个孤立的问题),命令失败,并显示Error at command:Exception c0000005 occurred at xxxxxxxx。 VS2012还有一个问题。也许你会有更好的运气,但长期来看,我认为熟悉Windbg是明智的。

That still doesn't help on my machine (could be an isolated issue), the command fails with "Error during command: Exception c0000005 occurred at xxxxxxxx". A problem I also had on VS2012. Maybe you'll have better luck, but long term I think it is wise to get familiar with Windbg.

这篇关于为什么不在VS 2013中加载SOS.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-29 23:37