Skip to content

Commit

Permalink
Add Note About Cargo Expand Pager
Browse files Browse the repository at this point in the history
  • Loading branch information
zicklag authored Aug 13, 2020
1 parent 4977837 commit 968fdbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@

- Print the final output of a macro using `cargo rustc --profile=check -- -Zunstable-options --pretty=expanded`
- Alternatively you could install and use [cargo expand](https://github.com/dtolnay/cargo-expand) which adds syntax highlighting to the terminal output.
- Additionally get pager by piping to `less` ( on Unix systems ): `cargo expand --color always | less -R`
- Print output during macro compilation using `eprintln!("hi");`

0 comments on commit 968fdbb

Please sign in to comment.