Sunday, April 6, 2014

Debugging .Net applications crash using WinDbg

Commands:

1. .loadby sos clr

This command needed to load the SOS.dll and show you the CLR types and .net call stacks during debugging.

2. !threads
Displays all the threads information.

3. ~ s
Sets the particular thread.

4. !clrstack
Displays the .net callstack.

5.!dumpstack
Displays both native and .net call stack together.

6. ~* e !clrstack
Displays all threads call stack.

7. !pe
prints the exception if any present in the current threads
!pe -nested shall display nested exceptions if present.

8. !dumpheap -stat
Displays the heap status.

9. !dso 
Dumps the stack objects for current threads.

10. !dumpheap -type [Data Type you want to investigate]
Dumps the specified data type from the heap.




No comments:

Post a Comment