Running DMD in GUI Debugger: Getting Started?

torhu no at spam.invalid
Thu Dec 8 19:47:35 PST 2011

On 09.12.2011 04:35, torhu wrote:
> On 09.12.2011 03:20, Nick Sabalausky wrote:
>>  "torhu"<no at spam.invalid>   wrote in message
>>>   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?
> It'll use the file names from the debug info, like it always does.  I
> don't know if it'll open the files by itself, but you can just find the
> files manually and drag and drop them into the editor part of the IDE.
> The debugger will assume it's the right file if the name matches.

I just tried this again.  You can also enter this mode by dropping the 
executable on the msvc desktop icon.  And it will actually load source 
files automatically if the paths in the debug info are correct. 
Sometimes you have to right click on the assembly view and select "Show 
source", though.

More information about the Digitalmars-d-debugger mailing list