proc-debug 0.1.0

Dump proc-macro output for efficient debugging
Documentation

proc-debug crate Latest Version Documentation GitHub Actions

Belief configuration

#[dependencies]
proc-debug = "0.1.0"
#[proc_macro]
#[proc_debug::proc_debug]
fn my_macro(..) -> TokenStream { .. }
  • show help
$ PROC_DEBUG_FLAGS="--help" cargo build --test <test-name> -- --nocapture
  • show all dumps
$ PROC_DEBUG_FLAGS="-a" cargo build --test <test-name> -- --nocapture
  • filtered
$ PROC_DEBUG_FLAGS="your_macro_path" cargo build --test <test-name> -- --nocapture