Writing a debugger for the CLR?

I suspect there are only a small handful of folks in the world interested I this topic, but I customer recently asked me for the data so I thought I’d share.  This is actually from a member of the CLR debugger team:


There’s a good bit of documentation in cordebug.idl, but some of the more complex new functionality is under-documented there. We weren’t able to update the documentation completely before Beta 1 shipped; for specific questions please post to the newsgroup Microsoft dotnet.framework.clr so that the response can benefit everyone.


If you are working on a debugger for managed code, we’d love to know about it!  Please drop me a line

Comments (8)

  1. Smeghead says:

    The guys at SharpDevelop would be interested im sure as they have no debugger currently on they’re IDE.

  2. Smeghead says:


    Nice free IDE (thats not tied to a specific CLR version) but no debugger. Ideal for studends and those with sewn up pockets 😀

    How about a source code like Rotor, this time for the debugger?

  3. Seo Woo Seok says:

    I’m developing my own native debugger(mostly it uses dbghelp32.dll), but it’s just started. I am very interested in Debugger stuff, so if you have any information about debugger (I don’t care whether it is related with managed or native), I really want to hear from you.

  4. I’m looking for a way to debug managed code, but I haven’t begun writing a debugger yet.

    My company is going to be developing a new application that supports a sort of "scripting" framework using C#. The purpose is to allow end-users to script application commands using the application’s own object model. Our current plan is to have the app compile the C# code into its own assembly upon each save. In addition to this, it would be nice to be able to debug the code from within our application.

    I downloaded the Microsoft CLR Debugger Sample, and I will be looking through that when I get a chance. Apart from cordebug.idl, are there any other resources you would recommend?

  5. Arild Fines says:

    "How about a source code like Rotor, this time for the debugger?"

    Rotor ships with source code for cordbg.

  6. Mike Stall says:

    FWIW, a lot of the .NET debugger folks have blogs.

    On the CLR debugger side (our team owns Mdbg, Cordbg, and the managed debugging API), there’s http://blogs.msdn.com/jmstall/ (that’s me).

    I mention more about the Mdbg sample here: http://blogs.msdn.com/jmstall/archive/2004/09/30/236281.aspx

    We’ll hopefully get more CLR Debugger bloggers soon. 🙂

    There are also some great blogs from the Visual Studio Debugger folks (those these don’t pertain to this specific sample):





Skip to main content