1 个稳定版本

1.0.0 2020年8月11日

#670调试 分类中

Download history 1551/week @ 2024-03-13 696/week @ 2024-03-20 606/week @ 2024-03-27 692/week @ 2024-04-03 587/week @ 2024-04-10 852/week @ 2024-04-17 594/week @ 2024-04-24 569/week @ 2024-05-01 708/week @ 2024-05-08 634/week @ 2024-05-15 491/week @ 2024-05-22 550/week @ 2024-05-29 389/week @ 2024-06-05 340/week @ 2024-06-12 379/week @ 2024-06-19 385/week @ 2024-06-26

1,574 每月下载量
25 个crate中使用了(直接使用16个)

MIT/Apache

6KB

crates.io Documentation License License line

debug_print

示例

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");

如果你不喜欢宏的名称。

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");

许可协议

许可协议为Apache许可证版本2.0MIT许可证,您可任选其一。除非您明确声明,否则您有意提交的任何贡献,根据Apache-2.0许可证的定义,应按上述方式双重许可,不得附加任何额外的条款或条件。

无运行时依赖