You do not indicate whether you are debugging your own or managed code. This does not affect the answer, WinDbg is extremely useful for both, but many people find that WinDbg is somehow less relevant when debugging .NET applications. Not this way. As a bonus, you can learn a lot about how the .NET platform works by debugging your .NET application in WinDbg with the SOS extension. Launch (or attach) your .NET application in WinDbg and type ...
.loadby sos mscorwks
... to make sure you download the correct extension for your version of the CLR. Then enter ...
!help
... to find out what commands are available in the SOS extension.
I heard that he was joking that Microsoft has only one tool for developers, and that is WinDbg. Everything you might want for debugging is there or in the extension. Of course, a subset of these things are also available in VS with a more friendly interface ... :-)
Martin Sep 23 '08 at 9:11 2008-09-23 09:11
source share