문제

I'm fixing some unit tests and I need to debug them. The callstack is mixed (there are managed and unmanaged DLLs) so I need the debugger to be in mixed mode.

As far as I've seen if you start a native unit text the debugger is in native mode and if you start a managed UT the debugger is managed.

Is there a way to set it up in mixed mode?

Thanks in advance mates.

EDIT: To clarify things, what I do to debug is to click the "Debug" button from the Unit Test list available inside Visual Studio. If I do that over a managed test the debugger starts in managed mode, If I do that over a unmanaged test (C++/CLI) then the debugger starts in unmanaged mode.

도움이 되었습니까?

해결책

I've found the solution. First of all if you are in a C# project enable the "unmanaged code debugging".

After that run the UT from the "Test Results" windows with the button "Debug Checked Items".

Looks like its a bug at the 2008 edition and its fixed in the 2010.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top