```d
debug {
        writeln("text");
}
```

```d
writeln(__MODULE__, ":", __LINE__, " ", "stuff");
```

You'll need to wrap try/catch for flushing stdout however.
  • Re: Debugging by... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn

Reply via email to