1

Do you need to configure Bitcoin Core with --enable-debug to be able to obtain detailed debug logs when running bitcoind with -debug=category?

Michael Folkson
  • 14,337
  • 3
  • 11
  • 45

1 Answers1

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
  • 1
    Just 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