mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
docs: Updated debug build instructions for cmake
This commit is contained in:
parent
a5fa90706a
commit
0b003e1ff7
1 changed files with 8 additions and 2 deletions
|
@ -354,8 +354,14 @@ Development tips and tricks
|
||||||
|
|
||||||
### Compiling for debugging
|
### Compiling for debugging
|
||||||
|
|
||||||
Run configure with `--enable-debug` to add additional compiler flags that
|
When using the default build configuration by running `cmake -B build`, the
|
||||||
produce better debugging builds.
|
`-DCMAKE_BUILD_TYPE` is set to `RelWithDebInfo`. This option adds debug symbols
|
||||||
|
but also performs some compiler optimizations that may make debugging trickier
|
||||||
|
as the code may not correspond directly to the source.
|
||||||
|
|
||||||
|
If you need to build exclusively for debugging, set the `-DCMAKE_BUILD_TYPE`
|
||||||
|
to `Debug` (i.e. `-DCMAKE_BUILD_TYPE=Debug`). You can always check the cmake
|
||||||
|
build options of an existing build with `ccmake build`.
|
||||||
|
|
||||||
### Show sources in debugging
|
### Show sources in debugging
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue