docs: clarify --pretty option to expand (#3810)
* Update debugging.md Added clarification. --pretty no longer works, and it breaks even on nightly at least on cargo 1.78.0-nightly (cdf84b69d 2024-02-02) and rustc 1.78.0-nightly (256b6fb19 2024-02-06). * Update guide/src/debugging.md Co-authored-by: David Hewitt <mail@davidhewitt.dev> --------- Co-authored-by: David Hewitt <mail@davidhewitt.dev>
This commit is contained in:
parent
f721c8c2b7
commit
c56cd3dd65
|
@ -16,7 +16,7 @@ You can also debug classic `!`-macros by adding `-Z trace-macros`:
|
|||
cargo rustc --profile=check -- -Z unstable-options --pretty=expanded -Z trace-macros > expanded.rs; rustfmt expanded.rs
|
||||
```
|
||||
|
||||
See [cargo expand](https://github.com/dtolnay/cargo-expand) for a more elaborate version of those commands.
|
||||
Note that those commands require using the nightly build of rust and may occasionally have bugs. See [cargo expand](https://github.com/dtolnay/cargo-expand) for a more elaborate and stable version of those commands.
|
||||
|
||||
## Running with Valgrind
|
||||
|
||||
|
|
Loading…
Reference in New Issue