mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
475 B
475 B
Debugging
Macro Debugging
- Print the final output of a macro using
cargo rustc --profile=check -- -Zunstable-options --pretty=expanded
- Alternatively you could install and use 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
- Additionally get pager by piping to
- Alternatively you could install and use cargo expand which adds syntax highlighting to the terminal output.
- Print output during macro compilation using
eprintln!("hi");