MDbg and Beta 2


VS Beta 2 has shipped. The MDbg binaries are now included in the beta 2 sdk. (Kudos to Rick for this) We have not yet shipped the corresponding source or updating the existing sample for the correpsonding source. We’ll try to do those soon.


One other caveat is that the original Mdbg is meant for Beta 1 and doesn’t compile against Beta 2. This was because we added some new classes (regarding the symbol store) to mscorlib in Beta1, shipped Mdbg depending on those classes, and then realized those classes shouldn’t be in mscorlib afterall, and then removed them for mscorlib beta 2 and into Mdbg. 




 


Comments (9)

  1. Pete says:

    Just installed the VS Beta2. The following simple snippet doesnt work…

    MDbgEngine myDebugger = new MDbgEngine();

    myDebugger.Options.StopOnModuleLoad = true;

    myDebugger.Options.CreateProcessWithNewConsole = true;

    MDbgProcess myProcess =

    myDebugger.CreateProcess(@"C:windowsapplication2.exe",

    "",DebugModeFlag.Debug,null);

    while (myProcess.IsAlive)

    {

    WaitHandle myHandle = myProcess.Go().WaitOne();

    }

    It starts the process running WindowsApplication2.exe but it is in a frozen state. Running the same executable in mdgb.exe works however… but I cant see what Im doing wrong. The only thing I am unsure of here is the deeversion parameter.. i set that to null but that might be wrong?

  2. Pete says:

    Sorry Mike, I was running the code from within a winform. I didnt realize at first that you could only access the mdbg from a MTA thread. When I did that everything works fine again. Thanks…

  3. Mdbg is now included in the Whidbey Beta 2 SDK as a tool. The source is not actually included in the…

  4. I had a sample GUI extension for Mdbg Beta 1. However, it doesn’t build with Mdbg Beta 2 because:   …

  5. I had a sample GUI extension for Mdbg Beta 1. However, it doesn’t build with Mdbg Beta 2 because:   …

  6. The Mdbg (a managed debugging written in pure C#) sample, which includes full source, has now been…

  7. The Mdbg (a managed debugging written in pure C#) sample, which includes full source, has now been…

  8. Soma (my boss’s boss’s boss’s boss) recently blogged about how the CLR took a major change to fix Nullable. …

  9. I had a sample GUI extension for Mdbg Beta 1. However, it doesn’t build with Mdbg Beta 2 because:   …