Locked mdbg only shows main thread when attaching to process

  • Friday, January 08, 2010 10:05 PM
     
     
    I have what I think is the latest mdbg.exe, 3.5.21022.8 from 11/7/2007.
    If I run my app from app from mdbg and hit "t" I can see all threads.
    But if I start my app and then attach to it from mdbg and hit "t" I see only the main thread.

    But I can see all threads if I attach using
    http://blogs.msdn.com/jmstall/articles/code_for_snapshot.aspx
    or
    Managed Stack Explorer.

    So I grabbed the source to mdbg to see what the problem is.  Looks like it's a little older than the exe, from 2006.
    http://www.microsoft.com/downloads/details.aspx?FamilyID=38449a42-6b7a-4e28-80ce-c55645ab1310&DisplayLang=en
    I build it and attach to my process.  And it works fine.  I can see all my threads.

    So, uh... what's up with that?

    I'm assuming that a newer build of mdbg that MS distributes is broken.  Somebody should do something about that.