Search code examples
c#c++debuggingwinapicom-interop

Debugging a Managed Component from C++ Win32


I have a Win32 EXE that's written in VC++. I have implementation written in C#. I've got the VC++ EXE consuming the C# DLL as outlined here: http://support.microsoft.com/kb/828736. Works great, but I need to be able to debug. Both projects are loaded into the same .SLN, but breakpoints in the C# are never hit. Is there a way to debug this in VS2012?


Solution

  • Ah, turns out this is easy if you know the right button to push. On the C++ project properties, Configuration Properties -> Debugging -> Debugger Type = "Mixed".