Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Windbg dot net_clr2


Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Windbg dot net_clr2

  1. 1. Debugging DotNet app with Windbg + SOS Winson
  2. 2. Why? <ul><li>Crash dump analysis </li></ul><ul><li>CLR internal </li></ul><ul><ul><li>Pre-requirement: download & installing WinDbg from MSDN </li></ul></ul>
  3. 4.
  4. 5. <ul><li>C:Program FilesDebugging Tools for Windows (x86) </li></ul><ul><li>C:WindowsMicrosoft.NETFrameworkv2.0.50727 </li></ul><ul><ul><li>mscordacwks.dll mscorwks.dll SOS.dll </li></ul></ul>
  5. 6. <ul><li>Sample app </li></ul>
  6. 7. srv*c:symbols*
  7. 8. Start running target app <ul><li>The code has console.readkey(), so could keep in memory </li></ul><ul><li>Using “start without debugging” </li></ul>
  8. 9. Using “Attach to running process” <ul><li>Don’t know why I can’t use “open executable…”. In my testing only “attach..” could load sos. </li></ul>
  9. 10. Using command “.load sos”
  10. 11. ! !help funcname
  11. 12. !dumpheap
  12. 13. !dumpheap –type Program
  13. 14. !dumpobj 01359be0
  14. 15. Video <ul><li> </li></ul>
  15. 16. Links <ul><li> </li></ul><ul><li> </li></ul><ul><li> </li></ul><ul><li>http :// Psscor Managed-Code Debugging Extension for WinDbg </li></ul><ul><li>http :// </li></ul><ul><li> </li></ul>