开发者

Visual Studio 2010 hangs during debugging of C++ / CLI (mixed mode ) projects

开发者 https://www.devze.com 2023-03-21 04:11 出处:网络
After Google the issue i found that it was reported already but nothing useful yet from MS. I开发者_StackOverflow wonder if any one found a work around it?Another option is to use windbg. You\'ll have

After Google the issue i found that it was reported already but nothing useful yet from MS. I开发者_StackOverflow wonder if any one found a work around it?


Another option is to use windbg. You'll have to do a lot of commands by hand, but it's the best debugger out there. It handles mixed mode without any major issues. It has a bit of a learning curve, but it's very versatile.


Visual Studio's debugger is really not reliable when debugging mixed mode applications. Taken from my answer here #5965771:

  • If you're trying to debug a piece of native code try to use a native project as the debugger start-up application. Under the project settings, "Debugging" tab set the "Debugger Type" to "Mixed", for us this helped sometimes (the native project can be a DLL for example, simply set your main Exe as debugging target in the project settings);

OR, as already mentioned in another answer: Use WinDbg! With it you can debug both managed/unmanaged mixed code applications much more reliably.


use a different debugger, or don't use the debugger at all, just trace to a file or insert breakpoints in the code with inline assembly language.

0

精彩评论

暂无评论...
验证码 换一张
取 消