1 stable release

1.0.0 Aug 11, 2020

#184 in Debugging

Download history 85/week @ 2021-01-16 65/week @ 2021-01-23 92/week @ 2021-01-30 20/week @ 2021-02-06 38/week @ 2021-02-13 26/week @ 2021-02-20 103/week @ 2021-02-27 75/week @ 2021-03-06 72/week @ 2021-03-13 193/week @ 2021-03-20 65/week @ 2021-03-27 105/week @ 2021-04-03 180/week @ 2021-04-10 94/week @ 2021-04-17 154/week @ 2021-04-24 82/week @ 2021-05-01

374 downloads per month
Used in libnss-wiregarden

MIT/Apache

5KB

crates.io Documentation License License line

debug_print

Examples

use debug_print::{debug_print, debug_println, debug_eprint, debug_eprintln};

let x = 5 * 2;

debug_println!("x = {}", x);
debug_print!("x");
debug_print!(" = ");
debug_print!("{}", x);
debug_eprintln!("I'm printing to the Standard Error");
debug_eprint!("I'm printing to the Standard Error");

If you don't like the names of the macros.

use debug_print::{
    debug_print as dprint,
    debug_println as dprintln,
    debug_eprint as deprint,
    debug_eprintln as deprintln,
};

let x = 5 * 2;

dprintln!("x = {}", x);
dprint!("x");
dprint!(" = ");
dprint!("{}", x);
deprintln!("I'm printing to the Standard Error");
deprint!("I'm printing to the Standard Error");

License

Licensed under either of Apache License Version 2.0 or MIT license at your option. Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps