Your SlideShare is downloading. ×
0
Windbg dot net_clr2
Windbg dot net_clr2
Windbg dot net_clr2
Windbg dot net_clr2
Windbg dot net_clr2
Windbg dot net_clr2
Windbg dot net_clr2
Windbg dot net_clr2
Windbg dot net_clr2
Windbg dot net_clr2
Windbg dot net_clr2
Windbg dot net_clr2
Windbg dot net_clr2
Windbg dot net_clr2
Windbg dot net_clr2
Windbg dot net_clr2
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Windbg dot net_clr2

1,386

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,386
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
27
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Debugging DotNet app with Windbg + SOS Winson
  • 2. Why?
    • Crash dump analysis
    • CLR internal
      • Pre-requirement: download & installing WinDbg from MSDN
  • 3.  
  • 4. http://msdn.microsoft.com/en-us/magazine/cc163791.aspx
  • 5.
    • C:Program FilesDebugging Tools for Windows (x86)
    • C:WindowsMicrosoft.NETFrameworkv2.0.50727
      • mscordacwks.dll mscorwks.dll SOS.dll
  • 6.
    • Sample app
  • 7. srv*c:symbols*http://msdl.microsoft.com/download/symbols
  • 8. Start running target app
    • The code has console.readkey(), so could keep in memory
    • Using “start without debugging”
  • 9. Using “Attach to running process”
    • Don’t know why I can’t use “open executable…”. In my testing only “attach..” could load sos.
  • 10. Using command “.load sos”
  • 11. !sos.help !help funcname
  • 12. !dumpheap
  • 13. !dumpheap –type Program
  • 14. !dumpobj 01359be0
  • 15. Video
    • http://channel9.msdn.com/blogs/egibson/msdn-simulcast-techniques-in-advanced-net-debugging-with-john-robbins-part-1-of-3
  • 16. Links
    • http://blogs.msdn.com/b/tess/
    • http://www.codeproject.com/KB/cs/net_type_internals.aspx
    • http://blogs.msdn.com/b/dougste/archive/2008/08/08/a-big-list-of-debugging-resources.aspx
    • http ://www.microsoft.com/download/en/details.aspx?id=21255 Psscor Managed-Code Debugging Extension for WinDbg
    • http ://blogs.msdn.com/b/tess/archive/2010/03/01/new-commands-in-sos-for-net-4-0-part-1.aspx
    • http://blogs.msdn.com/b/tom/

×