Convenient debug printing

Patrick Schluter Patrick.Schluter at bbox.fr
Sat Feb 2 12:08:02 UTC 2019


On Friday, 1 February 2019 at 15:49:24 UTC, Per Nordlöw wrote:
> Rust just added a standard macro `dbg` for debug printing
>
> https://blog.rust-lang.org/2019/01/17/Rust-1.32.0.html#the-dbg-macro
>
> [...]

What's wrong with `debug log(<whatever>);` from 
`std.experimental.logger;`?

Works like a charm in my project. The message is prepended with a 
time stamp and location in file/function/line.



More information about the Digitalmars-d mailing list