How do you debug DMD?

Walter Bright newshound2 at digitalmars.com
Sun Mar 13 23:58:25 PDT 2011


On 3/13/2011 10:53 PM, %u wrote:
> I tried using Visual Studio to set breakpoints in DMD and everything
> (after compiling with -g), but it said that the source file is a
> "different version" (it isn't), and so it doesn't really let me set
> breakpoints.
>
> What tools (aka debuggers) do you guys use to debug DMD? Any free
> tools we can use to help find bugs? (Or is there some trick to getting
> Visual Studio to debug this?)

You can use windbg.exe, which is in \dmd\windows\bin. Of course, you'll also 
need to download the Digital Mars C++ compiler from 
http://www.digitalmars.com/download/freecompiler.html


More information about the Digitalmars-d mailing list