Windbg:psscor4 不起作用 [英] Windbg: psscor4 doesn't work

查看:24
本文介绍了Windbg:psscor4 不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我搜索并尝试了很多东西,但无法让 psscor4 正常工作.

I searched and tried a lot of things, but can't get psscor4 to work properly.

当我调用 !threads 时,我总是得到

When I invoke !threads, I'm always getting

请求线程存储失败

我检查的内容如下:

  • 我有一个为 X86 平台编译的 .NET 4 应用程序
  • 我使用的是 Windbg 版本 6.2.9200.16384,X86 版本
  • 我正在使用 Microsoft 当前的 psscor4,它可以正确加载.我正在加载 X86 版本,所以应该没问题
  • 符号从 MS Symbol 服务器加载(命令 .symfix+,然后 .reload)
  • .cordll 显示以下内容:

    • I'm having a .NET 4 application that's compiled for X86 platform
    • I'm using Windbg version 6.2.9200.16384, X86 version
    • I'm using current psscor4 from Microsoft and it loads properly. I'm loading the X86 version, so that should be fine
    • Symbols are loaded from MS Symbol server (command .symfix+, then .reload)
    • .cordll shows the following:

      CLR DLL 状态:加载的 DLL C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscordacwks.dll

    • CLR DLL status: Loaded DLL C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscordacwks.dll

      有人有想法吗?

      推荐答案

      问题是您正在调试 .NET 4.5.PSSCOR4 不适用于 .NET 4.5.我还怀疑您在调试机器上运行 .NET 4.0,这会导致您的 SOS 也无法工作.为了调试 .NET 4.5,您需要 .NET 4.5 SOS 和/或 SOSEX(适用于 .NET 2.0+ 的所有版本).

      The problem is you're debugging .NET 4.5. PSSCOR4 won't work with .NET 4.5. I also suspect that you're running .NET 4.0 on your debugging machine, which would cause your SOS not to work either. In order to debug .NET 4.5, you need .NET 4.5 SOS and/or SOSEX (which works for all versions of .NET 2.0+).

      这篇关于Windbg:psscor4 不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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