Skip to content

Commit 5396105

Browse files
committed
Update compiler-debugging.md
1 parent af46ee4 commit 5396105

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/compiler-debugging.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ stack backtrace:
4646
37: rustc_driver::run_compiler
4747
```
4848

49-
If you want line numbers for the stack trace, you can enable
50-
`debuginfo-level = 1` or `debuginfo-level = 2` in your config.toml and rebuild the
51-
compiler. Then the backtrace will look like this:
49+
If you want line numbers for the stack trace, you can enable `debug = true` in
50+
your config.toml and rebuild the compiler (`debuginfo-level = 1` will also add
51+
line numbers, but `debug = true` gives full debuginfo). Then the backtrace will
52+
look like this:
5253

5354
```text
5455
stack backtrace:

0 commit comments

Comments
 (0)