Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In what cases debugger's protocol incompatible with the debuggee

In some cases when I try to set "Start external programm" on tab "Debug" in settings of C# project and press F5 I see an error "debugger's protocol incompatible with the debuggee". In what cases it can occur?

If code of dll is in vs2008 project and application code is in vs2010 project can I debug library running application through "Start external programm" option?

like image 949
Eugene Maksimov Avatar asked Jun 08 '12 12:06

Eugene Maksimov


2 Answers

The managed debugger interface was changed in .NET version 4. You cannot debug a .NET 4 program with the VS2008 debugger.

Use the VS2010 debugger instead. Setting breakpoints in a DLL that you built targeting an earlier .NET version isn't otherwise a problem.

like image 91
Hans Passant Avatar answered Sep 22 '22 21:09

Hans Passant


If you are debugging a C++ DLL in VS2008, you may set Debugger Type = "Native Only" into debugging preferences in the project properties dialog you are trying to debug (if, of course, you are trying to debug a native library which is loaded by the executable)

like image 30
franckspike Avatar answered Sep 25 '22 21:09

franckspike