[Qgis-developer] prints to std::cout in qgis

Mateusz Łoskot mateusz at loskot.net
Wed Mar 22 12:45:20 EST 2006


Radim Blazek wrote:
> On 3/22/06, Mateusz Łoskot <mateusz at loskot.net> wrote:
>
>>But how the second macro should work?
>>Do you expect that everytime and everywhere debug output API is used, it
>>reads for QGIS_DEBUG_FILE and checks if it contains current file.
>>If it does, then debug output is turned on for this file.
>>Right?
>>
>>Basic example:
>>
>>GEOS_DEBUG_PRINT("this is my debug message")
>>
>>This macro is expanded to something like following operations:
>>
>>Now, when QGIS is executed, macro checks:
>>- is there any QGIS_DEBUG_FILE deined?
>>- if there is, check if it contains file with name of current
>>   file; here __FILE__ can be used
>>- if current file is there, print debug message, if not, just ignore it.
>>
>>Is this your idea?
> 
> 
> Yes.


Great and I like it :-)

What is the current state of debug output?
I mean what is the current strategy?

Does everyone agree with Radim's idea?
Should current technique be changed according to Radim's concept?

Cheers
-- 
Mateusz Łoskot
http://mateusz.loskot.net



More information about the Qgis-developer mailing list