[QGIS-Developer] Trouble compiling QGIS in DEBUG mode on Windows
Szymon Ślęczka
szymonsleczka7 at gmail.com
Sat Jun 21 01:42:56 PDT 2025
Dear QGIS Developers,
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
https://github.com/qgis/QGIS/blob/master/INSTALL.md#8-debug-output-and-running-tests,
section 8.
However, compiling QGIS in Debug mode fails with errors, as shown here:
https://cdash.orfeo-toolbox.org/build/32095
The log was generated after configuring the build with:
-D CMAKE_BUILD_TYPE=Debug
The entire build was executed using the package.sh script from:
https://github.com/jef-n/OSGeo4W/tree/master/src/qgis-rel-dev/osgeo4w
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.
A few questions I would appreciate clarification on:
• Is DEBUG mode supported and used by QGIS developers for debugging?
• Is QgsDebugMsgLevel still commonly used, and what is the proper setup
to get it working?
• Do I really need to rebuild all dependencies
(e.g., libprotobuf-lite, draco, etc.) in DEBUG mode for QGIS to compile
this way?
Any guidance or confirmation from someone experienced in building QGIS in
full DEBUG mode would be highly appreciated.
Best
Szymek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20250621/05dca4ae/attachment.htm>
More information about the QGIS-Developer
mailing list