Running DMD in GUI Debugger: Getting Started?

Rainer Schuetze r.sagitario at
Thu Dec 1 16:24:34 PST 2011

You can use cv2pdb with option -C on the dmc-compiled dmd to generate a 
pdb file and then use the Visual Studio debugger.

I use a VS makefile project for dmd. It allows you to start dmd in the 
debugger. If you add all the sources to the project, you also get 
intellisense on the source this way.

I recently created a pull request for dmd that actually compiles with VS 
and gives you an even better debugging experience:

On 01.12.2011 23:55, Nick Sabalausky wrote:
> Heh, yea, I guess it's been faaaar too long since I've used C/C++ or
> debuggers (dealing with lots of oddball platforms has gotten me accustomed
> to printf debugging), because this is one hell of a newbie question...
> How do I get started with running DMD in a debugger in Windows? I'm thinking
> like Visual Studio, but any GUI debugger will do (hmm, actually, even a GUI
> debugger on Linux would be fine, too).
> Normally I would just load up the Visual Studio project and hit "debug". But
> DMD uses a makefile and DMC instead of a Visual Studio project and MS's C
> compiler. There's the "Attach to process", but that won't do me much good
> with a quick cmdline app like DMD if I'm not already in the debugger with a
> breakpoint set.

More information about the Digitalmars-d-debugger mailing list