Macro dbgprint::dbgeprintln
source · macro_rules! dbgeprintln { ($($arg:tt)*) => { ... }; }
Expand description
Prints to the standard error, with a newline, in debug mode.
Equivalent to the eprintln!
macro, but does nothing when not in debug mode.
Example
use dbgprint::dbgeprintln;
dbgeprintln!("Error: {}", "something went wrong"); // prints "Error: something went wrong" to stderr in debug mode