[Qgis-developer] how to get debugging messages?

Etienne Tourigny etourigny.dev at gmail.com
Wed Feb 15 09:18:04 EST 2012


Thanks!

I overlooked, this information is available at
http://hub.qgis.org/wiki/quantum-gis/Building_QGIS_with_CMake#Important-variables

for reference, debugging can be disabled by setting QGIS_DEBUG=-1

thanks,
Etienne

On Wed, Feb 15, 2012 at 11:37 AM, Alexander Bruy
<alexander.bruy at gmail.com> wrote:
> Add -DCMAKE_BUILD_TYPE=Debug to cmake commandline
>
> 2012/2/15 Etienne Tourigny <etourigny.dev at gmail.com>:
>> Hi all,
>>
>> I am trying to activate debug output (sent by QgsDebugMsg), and
>> setting the environment variable "QGIS_DEBUG" has no effect:
>>
>> QGIS_DEBUG=1 qgis
>> Warning: loading of qgis translation failed
>> [/home/softdev/share/qgis/i18n//qgis_en_US]
>> Warning: loading of qt translation failed [/usr/share/qt4/translations/qt_en_US]
>> [no debug output at all]
>>
>> I also tried activating QGISDEBUG with cmake, but no success:
>>
>> cmake -D CMAKE_INSTALL_PREFIX=$SOFT_PREFIX  -D
>> PYTHON_LIBRARY=/usr/lib/libpython2.7.so -D QGISDEBUG=1 ..
>> [...]
>> CMake Warning:
>>  Manually-specified variables were not used by the project:
>>
>>    QGISDEBUG
>>
>> What is the proper way of compiling and running QGis with debug
>> messages enabled?
>>
>> thanks
>> Etienne
>
> --
> Alexander Bruy


More information about the Qgis-developer mailing list