[dmd-internals] Debugging with D

Brad Roberts braddr at puremagic.com
Sun May 2 14:27:13 PDT 2010


On 5/2/2010 2:15 PM, Robert Clipsham wrote:
> DMD currently outputs debug info differently depending on the switch you
> pass it. Currently it works as follows:
> 
> -g Act as D, using D extensions
> -gc Act as C, no D extensions


>  * Change/replace the -gc option
> 
> Like the first option, but rather than adding a new -g* option, we
> replace -gc to use a language that supports more features, and go from
> there.

My vote would be something along the lines of:

-g == support as much of the language as can be squeezed into the native debug
format.

-gd ==> add extensions to the native format to better suit d

Yes, it's not backwards compatible, but to date that's been so fragile on linux
at least, that there's little to be compatible with.  I have no real idea what
the state of debugging has been on windows as I don't use it.

Later,
Brad


More information about the dmd-internals mailing list