Crate develop_debug[−][src]
Print debugging information at development time.
use develop_debug::*; #[test] fn use_develop_debug() { let x = "dear X"; let say = "hello world!"; let array = vec!["a", "b", "c"]; let title2 = "balabala..."; develop_debug!(title "example",title2); develop_debug!(var x,say); develop_debug!(iter array.iter()); develop_debug!(done "genius!"); develop_debug!(error "dude, this road is blocked."); develop_debug!( "{}", "Use it just as you would with the `println!()` macro." ); } #[test] fn use_develop_debug_shortcut() { let x = "dear X"; let say = "hello world!"; let array = vec!["a", "b", "c"]; let title2 = "balabala..."; dd___title!("example", title2); dd_____var!(x, say); dd____iter!(array.iter()); dd____done!("genius!"); dd___error!("dude, this road is blocked."); dd________!( "{}", "Use it just as you would with the `println!()` macro." ); }
Re-exports
pub use develop_debug as dd________; |
Macros
dd_____var | Shortcut to |
dd____done | Shortcut to |
dd____iter | Shortcut to |
dd___error | Shortcut to |
dd___title | Shortcut to |
develop_debug | The |