views:

172

answers:

1

Similar to this problem here:

Old Question about C# debugging

I'm trying to debug a library that's used in multiple projects and is compiled using Intel's C++ v 11 compiler (ie, not the standard compiler) in Visual Studio 2008. The current platform I'm using to debug is a C# program that calls the C++ method through a p/invoke.

Is there a way to debug into the C++ code (which has been compiled in debug mode) short of doing something like starting some huge loop in the C++ code and attaching a debugger to the process? Right now, the C# code just steps right over the C++ call.

I've set it so that I can debug managed and unmanaged/native code, as well as debug 'not my code', but those settings don't seem to matter.

I really, really want to avoid adding the C++ project to the C# project; as I said, it's a library that's called by multiple programs, so doing so would have serious consequences to those other programs and maintenance.

A: 

I remember in the early days of WPF development (the project itself, I was at MSFT at the time), we had to use two debuggers, WindDbg for the native code and the .Net stand alone debugger (can't remember what is called) and set breakpoints in both. Not sure if VS supports this.

Franklin Munoz
You cannot attach two debuggers to the same process. So this won't work here.
Max