bevy/docs/debugging.md
2020-08-12 19:18:26 -05:00

365 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.
  • Print output during macro compilation using eprintln!("hi");