[Qgis-developer] debug/verbose mode?

John C. Tull john.tull at wildnevada.org
Thu Jan 29 19:20:42 EST 2009


Yes, I've always had to do another compile when trying to get useful  
debug information to the devs. Think of it as an opportunity to step  
away from the computer for a few minutes. ;-)

John

On Jan 29, 2009, at 3:26 PM, William Kyngesburye wrote:

> I just poked around a bit.  There it is in qgslogger.cpp -  
> QGISDEBUG, enabled by Debug build type, is what turns these messages  
> on, otherwise they just get zapped out of the compiled code.   
> Bummer, I wanted some flag to turn this on at runtime, now I need a  
> full recompile...
>
>> On Jan 28, 2009, at 6:18 PM, William Kyngesburye wrote:
>>
>>> That's the gcc debug binary, I think.  I don't want to run Qgis  
>>> thru a debugger (I don't know much about it anyways).  I just want  
>>> to see the QgsDebugMsg() messages.
>>>
>>>
>>> On Jan 28, 2009, at 7:46 PM, John C. Tull wrote:
>>>
>>>> AFAIK, you have to build your binary with the debug option. You  
>>>> can do this with 'ccmake ..' from the build directory. You will  
>>>> see an option near the top for 'CMAKE_BUILD_TYPE'. Set that to  
>>>> Debug. You can also do this manually as an option with cmake or  
>>>> ccmake as '-D CMAKE_BUILD_TYPE=Debug'.
>>>
>
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
>
> "History is an illusion caused by the passage of time, and time is  
> an illusion caused by the passage of history."
>
> - Hitchhiker's Guide to the Galaxy
>
>



More information about the Qgis-developer mailing list