Do you need to configure Bitcoin Core with --enable-debug to be able to obtain detailed debug logs when running bitcoind with -debug=category?
Asked
Active
Viewed 66 times
1
Michael Folkson
- 14,337
- 3
- 11
- 45
1 Answers
2
No they are orthogonal. --enable-debug creates unoptimized binaries which are more usable when you're trying to attach a debugger (e.g. gdb, lldb). It is unrelated to debug output. Debug output is controlled at runtime using -debug=X flags.
Thanks to the individuals who answered this on IRC.
Michael Folkson
- 14,337
- 3
- 11
- 45
-
1Just a small elaboration on `--enable-debug`: it also enables more runtime checking. If all you need is the ability to run a debugger, consider specifying `./configure CXXFLAGS='-O0 -g3'`. – Larry Ruane Sep 26 '22 at 19:37