开发者

C++/CLI mixed mode debugging hangs (Frequently)

开发者 https://www.devze.com 2023-02-22 07:55 出处:网络
I am facing a process hang problem while debugging in mixed mode C++/CLI with a native application. This is unbearable, almost 70% of my debugging this happens and I need to restart the process again

I am facing a process hang problem while debugging in mixed mode C++/CLI with a native application. This is unbearable, almost 70% of my debugging this happens and I need to restart the process again and again.

Is there any hotfix or sol开发者_StackOverflow中文版ution for this?


One thing to do is, from native code avoiding stepping into managed code. For me, that crashes my processes 100% of the time. Instead, place a breakpoint in the managed code that you want to get to. Debugging C++/CLI is awkward at best, usually flaky, though it is much improved over VS2008.

Not sure if you are running into this exact scenario.

EDIT: I have been having much better luck (in terms of stability) debugging C++/CLI on Win7, as compared with my WinXP dev machine.

0

精彩评论

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