Display stack traces from Rust panics.
Section: Environment variables
Show a backtrace on panic
bash
bash
RUST_BACKTRACE=1 cargo runExplanation
A basic but essential debugging technique for CLI apps.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Environment variables