MDbg - Debugger的协议与Debuggee不兼容 [英] MDbg - Debugger's Protocol Is Incompatible With The Debuggee

查看:697
本文介绍了MDbg - Debugger的协议与Debuggee不兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用MDbg来检索一个进程应用程序域中列出的所有程序集的列表。每当我尝试向MDbgEngine附加一个进程时,我收到以下异常消息:

I am using MDbg to retrieve a list of all my assemblies listed inside a process' App Domain. Whenever I try to attach a process to the MDbgEngine I receive the following exception message:


调试器的协议与调试器不兼容。 (HRESULT的异常:0x8013134B)

The debugger's protocol is incompatible with the debuggee. (Exception from HRESULT: 0x8013134B)

我错过了某些东西或者调用方法不正确吗?我正在使用.NET Framework 4.0,MDbg核心引用来自\Microsoft SDKs\Windows\v7.0A\Bin\MdbgCore.dll。

Am I missing something or calling the method incorrectly? I am using .NET Framework 4.0 and the MDbg core reference is taken from \Microsoft SDKs\Windows\v7.0A\Bin\MdbgCore.dll.

代码:

MDbgProcess process;
MDbgEngine mDbgEngine = new MDbgEngine();
process = mDbgEngine.Attach(myProcess.Id); // this line causes the error
foreach (CorAppDomain appDomain in process.AppDomains)
{
   foreach (CorAssembly assembly in appDomain.Assemblies)
   {
      //get assembly information
   }
}


推荐答案

mdbg位置在:


C:/ Program Files(x86)/ Microsoft SDKs / Windows / v7.1 / Bin / / p>

C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1/Bin/

为3.x版本的框架,并在:

for the 3.x version of the Framework and is at:


C:/ Program Files(x86)/ Microsoft SDKs / Windows / v7.1 / Bin / NETFX 4.0工具/

C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1/Bin/NETFX 4.0 Tools/

为4.x版本的框架。谢谢。美好的一天。

for the 4.x version of the Framework. Thank you. Good day.

这篇关于MDbg - Debugger的协议与Debuggee不兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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