@@ -16,29 +16,36 @@ set `debug = true` in your config.toml.
16
16
17
17
Setting ` debug = true ` turns on many different debug options (e.g., ` debug-assertions ` ,
18
18
` debug-logging ` , etc.) which can be individually tweaked if you want to, but many people
19
- simply set ` debug = true ` .
19
+ simply set ` debug = true ` .
20
20
21
21
If you want to use GDB to debug rustc, please set ` config.toml ` with options:
22
22
23
23
``` toml
24
24
[rust ]
25
25
debug = true
26
- debuginfo-level = 2
27
- # WARNING: this will use a lot of disk space (about 35GB) and compile time.
28
- # Without debuginfo-level, you may also track the execution path, but lost
29
- # the symbol information for debugging.
26
+ debuginfo-level = 2
30
27
```
31
28
32
- Default configuration will enable ` symbol-mangling-version ` v0, you need to install a GDB
33
- with version higher than 10.2, otherwise you need to disable new symbol-mangling-version.
29
+ > NOTE:
30
+ > This will use a lot of disk space
31
+ > (upwards of <!-- date-check Aug 2022 --> 35GB),
32
+ > and will take a lot more compile time.
33
+ > With ` debuginfo-level = 1 ` (the default when ` debug = true ` ),
34
+ > you will be able to track the execution path,
35
+ > but will lose the symbol information for debugging.
36
+
37
+ The default configuration will enable ` symbol-mangling-version ` v0.
38
+ This requires at least GDB v10.2,
39
+ otherwise you need to disable new symbol-mangling-version in ` config.toml ` .
34
40
35
41
``` toml
36
42
[rust ]
37
43
new-symbol-mangling = false
38
44
```
39
45
40
- Check out the comments in config.toml.example for more info, you will need to rebuild the
41
- compiler once you've changed any configuration options.
46
+ > See the comments in ` config.toml.example ` for more info.
47
+
48
+ You will need to rebuild the compiler after changing any configuration option.
42
49
43
50
## ` -Z ` flags
44
51
0 commit comments