QDebug - missing output
I got new PC and needed to install ubuntu(17.10) and Qt(newest available).
So I got a problem I do not see qDebug output in the QtCreator. Example of the code:
qDebug() << "This debug is visible in QtCreator"; qDebug() << "This one is also visible"; QApplication a(argc, argv); qDebug() << "This one is gone";
So as you can see ever qDebug after QApplication is not visible.
What am I missing? BTW. Same project on previous PC works correctly so probably something wrong with my settings.
Thanks in advance
qDebug() << "This one is gone";
What are you doing after this line?
I start the whole application, create classes, connect signals, etc.
In this project I do not use qInstallMessageHandler.
I think it is somehow connected to QtCreator settings or system settings
JonB last edited by
Probably not your problem, but at least read through, say, https://forum.qt.io/topic/55645/solved-no-output-from-qdebug-why-not/12
Yeah that was it, just created ~/.config/QtProject/qtlogging.ini and now it works
Not sure why this file was missing, I will report the bug later