How can I get debug output from my Qt applications?

You can use qDebug() [qt.nokia.com] and have the output on the console.

On Windows, applications run by default without a console, so output on
stderr or stdout is not visible. You can add

  1. CONFIG += console

to your .pro file (or modify the linker settings by changing /SUBSYSTEM:WINDOWS to /SUBSYSTEM:CONSOLE) to build a console-application, which runs attached to a console.

No comments

Write a comment

Sorry, you must be logged in to post a comment.