Update compiler-debugging.md
This commit is contained in:
parent
5f5ea62102
commit
12292c52d4
|
|
@ -46,9 +46,10 @@ stack backtrace:
|
||||||
37: rustc_driver::run_compiler
|
37: rustc_driver::run_compiler
|
||||||
```
|
```
|
||||||
|
|
||||||
If you want line numbers for the stack trace, you can enable
|
If you want line numbers for the stack trace, you can enable `debug = true` in
|
||||||
`debuginfo-level = 1` or `debuginfo-level = 2` in your config.toml and rebuild the
|
your config.toml and rebuild the compiler (`debuginfo-level = 1` will also add
|
||||||
compiler. Then the backtrace will look like this:
|
line numbers, but `debug = true` gives full debuginfo). Then the backtrace will
|
||||||
|
look like this:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
stack backtrace:
|
stack backtrace:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue