From 06a78d43f59dd1ed981ee8f5afe17341df9648fa Mon Sep 17 00:00:00 2001 From: wjyoung65 Date: Thu, 12 Feb 2026 04:20:01 -0500 Subject: [PATCH] docs(dev): fix references to LOG_DEBUG #37825 --- contrib/local.mk.example | 2 +- runtime/doc/dev_tools.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/local.mk.example b/contrib/local.mk.example index f3024a147c..223602fddc 100644 --- a/contrib/local.mk.example +++ b/contrib/local.mk.example @@ -34,7 +34,7 @@ # Log levels: DEBUG, INFO, WARNING, ERROR # For Debug builds all log levels are used # For Release and RelWithDebInfo builds only WARNING and ERROR are used, unless: -# CMAKE_EXTRA_FLAGS += -DLOG_DEBUG +# CMAKE_EXTRA_FLAGS += "-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS} -DNVIM_LOG_DEBUG" # By default, nvim uses bundled versions of its required third-party # dependencies. diff --git a/runtime/doc/dev_tools.txt b/runtime/doc/dev_tools.txt index e613c7bef5..9d79caa892 100644 --- a/runtime/doc/dev_tools.txt +++ b/runtime/doc/dev_tools.txt @@ -62,14 +62,14 @@ Low-level log messages sink to `$NVIM_LOG_FILE`. UI events are logged at DEBUG level. > rm -rf build/ - make CMAKE_EXTRA_FLAGS="-DLOG_DEBUG" + make CMAKE_BUILD_TYPE=Debug Use `LOG_CALLSTACK()` (Linux only) to log the current stacktrace. To log to an alternate file (e.g. stderr) use `LOG_CALLSTACK_TO_FILE(FILE*)`. Requires `-no-pie` ([ref](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=860394#15)): > rm -rf build/ - make CMAKE_EXTRA_FLAGS="-DLOG_DEBUG -DCMAKE_C_FLAGS=-no-pie" + make CMAKE_BUILD_TYPE=Debug CMAKE_EXTRA_FLAGS="-DCMAKE_C_FLAGS=-no-pie" Many log messages have a shared prefix, such as "UI" or "RPC". Use the shell to filter the log, e.g. at DEBUG level you might want to exclude UI messages: >