Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging Mixed mode (C# , C++) application

I am debugging an issue with a mixed mode (managed and unmanaged) application.

The actual issue is within the unmanaged code.

I have loaded SOS dll into Windebugger. But is shows me the call stack only upto managed mode since i have loaded SOS dll. How do I see the call stack of unmanaged code as well?

like image 322
Rockstart Avatar asked Dec 21 '12 08:12

Rockstart


2 Answers

The SOS command !dumpstack will produce a complete stack trace with managed and unmanaged code. Since it's an issue in unmanaged code, the usual debugger stack trace commands (k and variants) may also be useful.

like image 151
Iridium Avatar answered Oct 06 '22 14:10

Iridium


!sosex.mk will give a complete stack trace in a way that is easy to read.

like image 29
Steve Johnson Avatar answered Oct 06 '22 13:10

Steve Johnson