Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stepping through Source Code using Windbg SOS Extension

I have recently switched from native to managed code programming. I am using .NET.

Since i have been using Windbg for quite some time , i want to use it for managed code debugging as well.

My search has brought me to the SOS (Son of Strike) extension, which seems to have quite some powerful commands.

Even though i understand most of the commands being used in SOS, i am unable to find a way to properly step through source code, just as i could do using the p and t instructions for native code.

This makes the debugging experience difficult, and I really want to step through code while debugging it.

I researched a bit on this and found that this was possible using the 6.7.05.0 version of Windbg in which MS seemed to have released integrated managed debugging, but rolled back in the later versions.

Nevertheless, i am very interested in being able to step through "source" code live while debugging through SOS. Specially because it is really hindering my debugging experience right now.

Is there a way to achieve this?

Any help on how to do this (or practical workarounds) is appreciated.

like image 698
Dev28 Avatar asked Oct 29 '12 05:10

Dev28


1 Answers

Try using !sosex.mt and !sosex.mgu. The 'p' command should work as advertised.

like image 190
Steve Johnson Avatar answered Nov 30 '22 06:11

Steve Johnson