views:

28

answers:

1

In order to try out mdbg, I have the following simple hello world program:

// kkk.cs
using System;

class HelloMain
{
    static public void Main()
    {
        Console.WriteLine("Hello");
    }
}

Compile it with csc /debug kkk.cs, this yields:

kkk.exe
kkk.pdb

I then do (from the visual studio command line):

mdbg kkk.exe

or

mdbg !r kkk.exe

I got:

Error: The request is not supported. (Exception from HRESULT: 0x80070032)
A: 

Try csc /debug /platform:x86 kkk.cs

You're running on 64-bit Windows. Mdbg is a 32-bit process and can only debug 32-bit processes.

Tergiver
It is possible to let mdbg debug x64 binaries? Or, should I use x64 version mdbg? If mdbg is only able to debug x86 applications, is that too limited?
I don't know if there is a 64-bit version of mdgb. I stopped trying to use it shortly after I encountered this same thing. VS is good enough for debugging managed apps 95% of the time. I use Windbg for that 5%.
Tergiver
Thanks for the help! It was very helpful! It seems that mdbg is indeed quite limited (if it is this case).