<div dir="ltr"><p>Dear QGIS Developers,</p><p>I'm reaching out for advice regarding an issue I'm encountering while trying to compile QGIS in DEBUG mode. My goal is to troubleshoot and potentially fix unexpected behavior related to QgsCheckableComboBox. To aid in the debugging process, I wanted to enable more detailed logging using QgsDebugMsgLevel, as described in <a href="https://github.com/qgis/QGIS/blob/master/INSTALL.md#8-debug-output-and-running-tests">https://github.com/qgis/QGIS/blob/master/INSTALL.md#8-debug-output-and-running-tests</a>, section 8.<br><br>However, compiling QGIS in Debug mode fails with errors, as shown here:<br><a href="https://cdash.orfeo-toolbox.org/build/32095">https://cdash.orfeo-toolbox.org/build/32095</a></p><p>The log was generated after configuring the build with:<br>-D CMAKE_BUILD_TYPE=Debug<br>The entire build was executed using the package.sh script from:<br><a href="https://github.com/jef-n/OSGeo4W/tree/master/src/qgis-rel-dev/osgeo4w">https://github.com/jef-n/OSGeo4W/tree/master/src/qgis-rel-dev/osgeo4w</a><br><br>I usually work with Microsoft Visual Studio 2022, and initially, I suspected some misconfiguration on my part. However, it’s now unclear to me whether compiling QGIS in DEBUG mode is even a standard or recommended approach in this context. Even when building in RelWithDebInfo and defining the QGISDEBUG macro, the debug messages from QgsDebugMsgLevel still don’t show up.<br><br>A few questions I would appreciate clarification on:<br>    • Is DEBUG mode supported and used by QGIS developers for debugging?<br>    • Is QgsDebugMsgLevel still commonly used, and what is the proper setup to get it working?<br>    • Do I really need to rebuild all dependencies (e.g., libprotobuf-lite, draco, etc.) in DEBUG mode for QGIS to compile this way?<br><br>Any guidance or confirmation from someone experienced in building QGIS in full DEBUG mode would be highly appreciated.<br><br>Best<br>Szymek<br></p></div>