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

#650 in Debugging

Download history 1167/week @ 2024-07-27 1017/week @ 2024-08-03 902/week @ 2024-08-10 832/week @ 2024-08-17 785/week @ 2024-08-24 1006/week @ 2024-08-31 941/week @ 2024-09-07 616/week @ 2024-09-14 809/week @ 2024-09-21 986/week @ 2024-09-28 990/week @ 2024-10-05 764/week @ 2024-10-12 1086/week @ 2024-10-19 993/week @ 2024-10-26 1866/week @ 2024-11-02 1906/week @ 2024-11-09

5,992 downloads per month
Used in 25 crates (2 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