dub -debug=tag for Windows

0xEAB desisma at heidel.beer
Sun Aug 17 14:17:42 UTC 2025


On Sunday, 17 August 2025 at 14:15:37 UTC, 0xEAB wrote:
> Unless you provide `-debug` as well, you should not get 
> identifier-less ones compiled in as well.

```
import std.stdio;

void main() {
     writeln("foo");
     debug writeln("bar");
     debug(foobar) writeln("foobar");
}
```

As far as I can tell, `dmd -debug=foobar -run app.d` reliably 
outputs across various compiler versions:

```
foo
foobar
```




More information about the Digitalmars-d-learn mailing list