Recently I debugged a lot .NET code in a native debugger. Some useful commands are listed below.
srv*c:\symbols\public*http://msdl.microsoft.com/download/symbols
.load sos
.loadby sos mscorwks
SOS commands
!eeheap -gc
!dumpstackobjects (!dso)
!clrstack
!dumpheap -stat - All classes in a memory
!dumpheap -mt message_table - First column
!dumpheap -stat - list of object for a given class
!do adress - Address of a command listed above
!gcroot adress - why it is not garbage collected
~* e clrstack - For all threats run command clrstack
!syncblk - Show all locks
No comments:
Post a Comment