无法加载SOS.dll扩展在Visual Studion 2012加载、SOS、dll、Studion

2023-09-03 15:22:05 作者:谏书稀

我开始阅读关于高级调试工具和技术的一些材料。我使用VS2012 Ultimate和目标框架是.NET 4.0。我到哪里,我需要一个调试会话过程中加载SOS.dll立即窗口的点,它是行不通的。

I've started to read some materials on advanced debugging tools and techniques. I use VS2012 Ultimate and the target framework is .NET 4.0. I got to the point where I need to load SOS.dll in the Immediate window during a debug session and it just doesn't work.

我想这些没有运气

.load SOS .load sos.dll .load C:\ WINDOWS \ Microsoft.NET \框架\ v4.0.30319 \ sos.dll

我总是得到这样的信息:

I always get this message:

无效EX pression术语'。

Invalid expression term '.'

所以,任何想法?我缺少的是在这里吗?

So, any idea ? What am I missing here ?

推荐答案

您可以更改此设置来解决这个问题:

You can change this setting to work around the issue:

在工具 - >选项 - > Debugging->常规,请选中复选框管理兼容模式。

Under Tools->Option->Debugging->General, check the box labeled "Managed Compatibility Mode."

这是修复该问题对我来说。此解决方法是从http://connect.microsoft.com/VisualStudio/feedback/details/789601/-load-sos-does-not-works#

That fixes the issue for me. This workaround is from http://connect.microsoft.com/VisualStudio/feedback/details/789601/-load-sos-does-not-works#