[Qt-interest] Debug Messages On Console

Malyushytsky, Alex alex at wai.com
Wed Apr 1 07:03:44 CEST 2009


qDebug?

>From Qt documentation:
If no message handler has been installed, the message is printed to stderr. Under Windows, the message is sent to the console, if it is a console application; otherwise, it is sent to the debugger. This function does nothing if QT_NO_DEBUG_OUTPUT was defined during compilation.


If you want it to Work on windows, you may convert you application into console application. Do it just for debug version. (it is one option for compiler)

Search for 'Debugging Techniques'  in Qt documentation for more information.

Hope this helps.

Alex

-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Raja Sekharan
Sent: Monday, March 30, 2009 7:17 PM
To: qt-interest at trolltech.com
Subject: [Qt-interest] Debug Messages On Console

Hi,

How can I output some messages to the console when I start the
application using the command line. I mean the messages similar to those
that come when the connect function faces an error in connecting signals
to slots.

Thanks in advance,

Raja Sekharan

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest


---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."

"Please consider our environment before printing this email."




More information about the Qt-interest-old mailing list