1 stable release

1.0.0 Aug 11, 2020

#370 in Debugging

Download history 328/week @ 2024-06-11 376/week @ 2024-06-18 428/week @ 2024-06-25 258/week @ 2024-07-02 326/week @ 2024-07-09 604/week @ 2024-07-16 505/week @ 2024-07-23 433/week @ 2024-07-30 557/week @ 2024-08-06 506/week @ 2024-08-13 522/week @ 2024-08-20 600/week @ 2024-08-27 592/week @ 2024-09-03 590/week @ 2024-09-10 506/week @ 2024-09-17 506/week @ 2024-09-24

2,263 downloads per month
Used in 26 crates (17 directly)

MIT/Apache

6KB

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