Defrag Tools #105 - Writing a Debugger Extension Part 9

Sign in to queue

The Discussion

  • User profile image
    Ben

    I really enjoyed this series. Thank you. I read the MSDN series a few years back so have always been interested in debugger extensions. However, nearly all of the debugging that I have done over the past decade or so has been for managed applications. I would love to create a debugger extension to simplify debugging of some of our managed applications. I eagerly watched each week hoping for a glimpse into how to extract managed types and stacks, but now that we have come to the end, it doesn't look like this happen. Sure, SOS can be programmatically called and the output parsed, but I'm already doing this with scripts anyway. I'd like to know how to output similar data WITHOUT going through SOS. Surely there must be some interfaces that can be called to do this. Once I can extract such data, the rest of this series does a great job on how to format this for output. Any pointers or samples would be most appreciated.

  • User profile image
    windev

    @Ben: Stay tuned -- I'm prepping a new mini-series on managed debugging at the moment. Instead of coding the logic in C++, you interop in to C# and do the logic over there with help from CLRMD.  Hopefully will get Lee Culver on to co-host (the developer of CLRMD and SOS).

    (If you can't wait, email me and I can get you started with what I have so far)

  • User profile image
    Alois Kraus

    To dump managed stacks you can use the managed debugging engine (no SOS needed). The little tool "stackdump" uses this approach http://stackdump.codeplex.com/
    No need for a debugger at all.

  • User profile image
    Srinivasa

    Thank you for DEMO on how to use DML from the debugger extension. Your demo is very useful for me as I was searching ways to display a hyperlink (that points to website) in the output of my extension!

Add Your 2 Cents