[Qgis-developer] prints to std::cout in qgis
humarco
marco.hugentobler at karto.baug.ethz.ch
Tue Apr 4 03:20:24 EDT 2006
Hi Radim,
I see, so levels for debug messages and warning, critical, fatal turned on.
> I thought that QGIS_DEBUG would only control debug messages
> (not warning/critical/fatal) and the level could be optionaly defined in
> overloaded methods (default level 1):
> static debug(int level, QString msg)
> It is important for example to have a possibility to avoid debug from loops
> through data, for example:
>
> debug("raster draw"); // level 1
> for each row {
> debug (2, "raster row"); //level 2
> for each col {
> debug (3, "pixel value"); //level 3
> }
> }
>
> i.e. normaly on level 1 it will only print "raster draw", if there
> are problems with rendering user can set higher level.
>
> Could we also have a macro calling debug automaticaly with
> __FILE__, __FUNCTION__, __LINE__
> if available?
>
More information about the Qgis-developer
mailing list