mirror of
https://github.com/bevyengine/bevy
synced 2024-11-21 20:23:28 +00:00
Add Cargo Expand to Macro Debugging Tips
This commit is contained in:
parent
d488d4e308
commit
4977837fad
1 changed files with 3 additions and 2 deletions
|
@ -2,5 +2,6 @@
|
|||
|
||||
## Macro Debugging
|
||||
|
||||
* Print the final output of a macro using ```cargo rustc --profile=check -- -Zunstable-options --pretty=expanded```
|
||||
* Print output during macro compilation using ```eprintln!("hi");```
|
||||
- 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.
|
||||
- Print output during macro compilation using `eprintln!("hi");`
|
||||
|
|
Loading…
Reference in a new issue