Friday, August 11, 2006

VS 2005 Debugging C++ and C#

I was having problems attempting to step into a C# method from C++ using Visual Studio 2005. I asked Charles if he was able to get it to work and he said that he wasn't but that it should be possible. A few minutes later he had found this:

A handy trick when debugging C++ and C# in VS 2005...

For a project, go to Properties->Debugging and set the Debugger Type to Mixed from Auto. It now properly detects the associated languages, so one can step into a C# call from C++ and back.

1 comment:

RT said...

This tip really helped me to debug my C# COM wrapper code in my C++ COM Client... Thanks!