Macro dbgprint::dbgprint

source ·
macro_rules! dbgprint {
    ($($arg:tt)*) => { ... };
}
Expand description

Prints to the standard output in debug mode.

Equivalent to the print! macro, but does nothing when not in debug mode.

Example

use dbgprint::dbgprint;
dbgprint!("Hello, {}!", "world"); // prints "Hello, world!" in debug mode