'qDebug() doesn't print anything

I try to use Qt with CLion. My problem is that qDebug() doesn't print anything, but qInfo(), qWarning(), qCritical() and qFatal() works well. Here is my example code :

#include <QCoreApplication>
#include <QDebug>

int main(int argc, char *argv[]) {
    QCoreApplication a(argc, argv);

    qDebug() << "This will not appear";
    qInfo() << "This will appear";
    qWarning() << "This will appear too";
    qCritical() << "This will appear too";

    return a.exec();
}

Specs :

  • Qt : 5.5.1
  • GCC : 5.3.1 (64bits)
  • CMake : 3.3.2
  • CLion : 1.2.2


Solution 1:[1]

Fixed by editing the ~/.config/QtProject/qtlogging.ini file as follows :

[Rules]
*.debug=true

Related Bugzilla entry

Solution 2:[2]

Try to enter ctrl+shift+alt+/ ->Registry and tick therun.processes.with.pty.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Hello
Solution 2 Jiaxing Xie