Macro dbgprint::dbgeprint

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

Prints to the standard error in debug mode.

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

Example

use dbgprint::dbgeprint;
dbgeprint!("Error: {}", "something went wrong"); // prints "Error: something went wrong" to stderr in debug mode