[Qt-interest] Any Way To Turn Off qDebug() Expression Evaluation

Bill Crocker william.crocker at analog.com
Tue Aug 9 00:57:32 CEST 2011


> 
> Is anyone aware of a facility in Qt that makes it possible to eliminate
> all those qDebug() expression evaluations?
> 

Write them this way (plus or minus) :

     DBG "i is" << i << ", huge_list is" << huge_list GBD

That makes it easy to change the implementation.
Turn them completely off this way:

	#define DBG if(0) qDebug() <<
	#define GBD ;




More information about the Qt-interest-old mailing list