How to Debug Rust in RustRover (IntelliJ)

Run cargo dev setup intellij with the rustc repo path to enable RustRover debugging.

To debug Rust in RustRover, you must first link the IDE to the local rustc source code because RustRover cannot resolve compiler internals via extern crate alone. Run the following command in your terminal, replacing <repo-path> with the absolute path to your cloned rust-lang/rust repository:

cargo dev setup intellij --repo-path <repo-path>

This command modifies your Cargo.toml files to use path dependencies for rustc crates, enabling code completion and debugging. Once setup is complete, restart RustRover to apply the changes.