Convenient debug printing

Gary Willoughby dev at nomad.uk.net
Sat Feb 2 16:48:20 UTC 2019


On Saturday, 2 February 2019 at 12:08:02 UTC, Patrick Schluter 
wrote:
> 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.

This!

I think everyone here has forgotten about the debug keyword and 
compiler switch.


More information about the Digitalmars-d mailing list