#macro #debug

dbg

dbg!(expr, ..) macro from RFC 2173 in stable Rust

6 releases (stable)

Uses old Rust 2015

1.0.4 Jan 19, 2018
1.0.3 Oct 27, 2017
1.0.1 Oct 26, 2017
0.0.1 Oct 18, 2017

#199 in Debugging

Download history 967/week @ 2021-02-26 1159/week @ 2021-03-05 1028/week @ 2021-03-12 934/week @ 2021-03-19 990/week @ 2021-03-26 834/week @ 2021-04-02 611/week @ 2021-04-09 490/week @ 2021-04-16 655/week @ 2021-04-23 625/week @ 2021-04-30 668/week @ 2021-05-07 396/week @ 2021-05-14 797/week @ 2021-05-21 936/week @ 2021-05-28 807/week @ 2021-06-04 697/week @ 2021-06-11

3,802 downloads per month
Used in 21 crates (3 directly)

MIT/Apache

13KB
206 lines

RFC 2173: The dbg!(expr, ..) macro

This crate provides a working implementation of RFC 2173 on stable Rust.

To use the crate, add this to Cargo.toml:

[dependencies]
dbg = "1.0.4"

and to lib.rs or main.rs (the crate root):

#[macro_use] extern crate dbg;

Now you are ready to use the macro. Happy debugging!

If you are on nightly, the macro will automatically be built with the specialization features mandated by the RFC.

For more details and documentation, please see the guide-level explanation.


lib.rs:

This crate provides a working implementation of RFC 2173 on stable Rust. For documentation, please see the guide-level explanation.

No runtime deps