qt - qDebug not showing __FILE__,__LINE__ -


according qlogging.h

#define qdebug qmessagelogger(__file__, __line__, q_func_info).debug 

but when use this, file,line,function name not show.

qdebug()<< "abc"; // show abc; qdebug()<< "";    // show nothing; 

i search while, seems no 1 had problem above.

i use ubuntu14.04,g++ version 4.8.2, qt5.3 build git.

if dig in qt history can find out __file__ , __function__ logged in debug builds since 1 oct 2014. git commit hash d78fb442d750b33afe2e41f31588ec94cf4023ad. commit message states:

logging: disable tracking of debug source info release builds

tracking file, line, function means information has stored in binaries, enlarging size. might surprise commercial customers internal file & function names 'leaked'. therefore enable debug builds only.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -