Crate debug_rs [−] [src]
A debug crate for rust inspired by NodeJS debug module.
Features
- colored
- including crate name, file name and line
- filtered by glob patterns.
Usage
Here is an simple example in examples folder:
#[macro_use] extern crate debug_rs; fn main() { debug!(666, 33, "aaa"); debug!(vec![1, 2, 3]); }
Then run it:
DEBUG=* cargo run
Macros
debug |
Debug variables depends on environment variable |
Functions
debug_meta | |
is_debug |