[MonoDevelop] Debug .NET 4.0 apps - COMException (0x8013134B)

Michael Hutchinson m.j.hutchinson at gmail.com
Sun Feb 20 19:45:28 EST 2011


On Sun, Feb 6, 2011 at 11:53 AM, eusebiu <marcueusebiu at gmail.com> wrote:
>
> Hey guys,
> I've installed MonoDevelop 2.4.2.1 and I tried to debug a simple console app
> on .NET 4.0 but I got this message:
> System.Runtime.InteropServices.COMException (0x8013134B): The debugger's
> protocol is incompatible with the debuggee. (Exception from HRESULT:
> 0x8013134B)
>   at
> Microsoft.Samples.Debugging.CorDebug.NativeApi.ICorDebug.CreateProcess(String
> lpApplicationName, String lpCommandLine, SECURITY_ATTRIBUTES
> lpProcessAttributes, SECURITY_ATTRIBUTES lpThreadAttributes, Int32
> bInheritHandles, UInt32 dwCreationFlags, IntPtr lpEnvironment, String
> lpCurrentDirectory, STARTUPINFO lpStartupInfo, PROCESS_INFORMATION
> lpProcessInformation, CorDebugCreateProcessFlags debuggingFlags,
> ICorDebugProcess& ppProcess)
>   at Microsoft.Samples.Debugging.CorDebug.CorDebugger.CreateProcess(String
> applicationName, String commandLine, SECURITY_ATTRIBUTES processAttributes,
> SECURITY_ATTRIBUTES threadAttributes, Boolean inheritHandles, Int32
> creationFlags, IntPtr environment, String currentDirectory, STARTUPINFO
> startupInfo, PROCESS_INFORMATION& processInformation,
> CorDebugCreateProcessFlags debuggingFlags)
>   at Microsoft.Samples.Debugging.CorDebug.CorDebugger.CreateProcess(String
> applicationName, String commandLine, String currentDirectory, IDictionary`2
> environment, Int32 flags)
>   at Microsoft.Samples.Debugging.CorDebug.CorDebugger.CreateProcess(String
> applicationName, String commandLine, String currentDirectory, IDictionary`2
> environment)
>   at MonoDevelop.Debugger.Win32.CorDebuggerSession.OnRun(DebuggerStartInfo
> startInfo)
>   at Mono.Debugging.Client.DebuggerSession.<>c__DisplayClass7.<Run>b__5()
>
> I've also added a app.config file:
> <?xml version="1.0" encoding="utf-8"?>
> <configuration>
>  <startup>
>    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
>  </startup>
> </configuration>
>
> On .NET 3.5, the debugger works.
>
> Is this a known issue?

AFAIK the .NET debugger in MD is based on the MS debugger samples, and
they haven't been updated for 4.0 yet.

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Monodevelop-list mailing list