Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 solution for this?

like image 819
Usman Avatar asked Aug 23 '26 02:08

Usman


1 Answers

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.

like image 185
Chris O Avatar answered Aug 27 '26 00:08

Chris O



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!