Running DMD in GUI Debugger: Getting Started?

Nick Sabalausky a at a.a
Thu Dec 8 18:20:29 PST 2011

"torhu" <no at spam.invalid> wrote in message 
news:jbpqo9$gci$1 at
> 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.
> There's actually an easy way of doing this, but AFAIK it's not accessible 
> from within the IDE itself.  Just give the name of the executable as a 
> command line parameter to msvc.  Like "vcexpress dmd.exe", replace 
> vcexpress with msdev or whatever the name of the full version IDE 
> executable is.  This opens msvc in a special mode where you can actually 
> start debugging that executable without creating a project or anything.

Ahh, cool! Is it still able to somehow know which source files to use?

More information about the Digitalmars-d-debugger mailing list