Debugging .NET with WinDbg and SOS
WinDbg is a command-based debugger for Windows that can sometimes help track down problems when Visual Studio gets in the way. SOS is a WinDbg extension which helps with .NET debugging. Once WinDbg is installed, you should configure your symbol path (which is needed for clean stack traces). You can either set an environment variable for the symbols, or reset them every time you run WinDbg. From environment variable: From Windbg: c:\websymbols is the path where the PDB symbol files will be cached from the symbol server. Articles About Using WinDbg/SOSJason Zander's SOS Tutorial Quick ReferenceLoad sos.dll whenever mscorwks is loaded: Stop on CLR exception (code e0434f4d): Dump the memory address pointed to by some hex memory address: Start a log file of all commands: |