Qt-interest Archive, March 2002
Re: using qDebug
Message 1 in thread
Soeren Fietzke wrote:
Good one Soeren, thank you, implemented.
/g
> Greger,
>
> you can write your own message handler and call qInstallMsgHandler to install it.
> In your own handlers, do with the messages whatever you want at runtime -- ignore them, write them to a file, write them to stdout,
> ...
>
> - Soeren
>
> > Hi again,
> > What is the proper usage of qDebug ( et al )?
> >
> > Should I put debug functions at critical locations and use a define
> > DEBUG in the pro file run by tmake?
> > I want to be able to run my application both with and without debugging
> > information on stdout without changing the code itself.
> >
> > Any advice much appreciated.
> > /G
> >
>
> --
> List archive and information: http://qt-interest.trolltech.com
--
[ signature omitted ]