Windbg’s integrated managed debugging – an accidental feature?

When Windbg 6.7.5.0 came out a while ago, some were quick to notice that stack traces now showed managed and unmanaged stack frames interchanged, integrating the previously separate functionality of Son of Strike’s !CLRStack command. So disappointment was great when this stopped working with no explanation with the 6.7.5.1 debugger release.

The other day I was trying to be helpful to someone on the microsoft.public.windbg newsgroup that noticed the missing functionality in the latest revision. I was promptly taken aback by this surprising response from Pat Styles of Microsoft.

Apparently, integrated managed debugging was never intended to come out of Microsoft at its current, early stage. If you consider messages like “Integrated managed debugging does not support locals. See http://dbg/managed.html” you get when you try to examine locals in a managed stack frame, obviously being a reference to an Microsoft internal site, it seems to add up.

My best guess is that the dbghelp.dll and dbgeng.dll versions distributed with the 6.7.5.0 DTW release accidentally included support for managed code. They might simply support CLR PDBs or even CLR metadata (wouldn’t that be cool? Symbols for managed code even without a PDB) – but the unfortunate fact is that it’s all being scrapped. Worse, from Pat’s reply it appears Microsoft are unwilling to commit to when we might see this as supported and working functionality in the debugger.

Let’s hope it’s going to be sooner rather than later.

2 thoughts on “Windbg’s integrated managed debugging – an accidental feature?

  1. Interesting!
    I don’t understand why Microsoft does not put more focus on integrated managed debugging.
    Is it not needed because you produce less errors when coding .NET?
    Not really!
    Do they want us to use other production debugging product for a fee?

    I hope MS will put more focus on developers needs in this area in future.

    Cheers,
    Volker

  2. @Volker:
    “I don’t understand why Microsoft does not put more focus on integrated managed debugging.”

    To push Visual Studio?

Leave a comment