Skip to content

Commit bd5dbc3

Browse files
committed
doc: update developer notes wrt --enable-debug and DEBUG_LOCKCONTENTION
1 parent 345647c commit bd5dbc3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/developer-notes.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,10 @@ Defining `DEBUG_LOCKCONTENTION` adds a "lock" logging category to the logging
394394
RPC that, when enabled, logs the location and duration of each lock contention
395395
to the `debug.log` file.
396396

397-
To enable it, run configure with `-DDEBUG_LOCKCONTENTION` added to your
398-
CPPFLAGS, e.g. `CPPFLAGS="-DDEBUG_LOCKCONTENTION"`, then build and run bitcoind.
397+
The `--enable-debug` configure option adds `-DDEBUG_LOCKCONTENTION` to the
398+
compiler flags. You may also enable it manually for a non-debug build by running
399+
configure with `-DDEBUG_LOCKCONTENTION` added to your CPPFLAGS,
400+
i.e. `CPPFLAGS="-DDEBUG_LOCKCONTENTION"`, then build and run bitcoind.
399401

400402
You can then use the `-debug=lock` configuration option at bitcoind startup or
401403
`bitcoin-cli logging '["lock"]'` at runtime to turn on lock contention logging.

0 commit comments

Comments
 (0)