Debugging by old fashioned trace log printfs / writefln

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Thu Jun 29 18:28:50 UTC 2023


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

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

You'll need to wrap try/catch for flushing stdout however.


More information about the Digitalmars-d-learn mailing list