debug = x overrides command line

Daniel Murphy via Digitalmars-d digitalmars-d at puremagic.com
Thu Oct 23 11:40:07 PDT 2014


"Steven Schveighoffer"  wrote in message 
news:m2avtc$15e3$1 at digitalmars.com...

> This is a good point. Enabling debug on a specific feature/module in a 
> complex build system is not easy. For someone simply typing dmd *.d, this 
> is trivial, but not if you have to go edit a makefile, or try to figure 
> out how to pass arguments to it (I need to look that up every time).

Exactly.

> I think there is a problem though. What if you leave your debug in by 
> accident? Now your pure code isn't so pure, and you have no idea.

What if you leave any other form of debug code enabled by accident?  The 
answer is to use version control, and make a quick pass over changes before 
you commit. 



More information about the Digitalmars-d mailing list