No output in "Application Output" with debugger
Unsolved
Qt Creator and other tools
-
Hi,
In QtCreator, I get no output in the "Application Output" tab when running the app with the debugger. I do however see it when running without the debugger.
My setup:
- Windows 11
- Qt Creator 15.0.1
- Qt 6.8.1 llvm mingw 64 bit
How to reproduce:
- Use the "Document Viewer" example project (I get the problem in any projects)
- Add a qDebug in the main.cpp file
- Compile the app in debug mode
- Run the app without the debugger to confirm that the qDebug does show up in the application output.
- Run the app again, but this time with the debugger. The qDebug does not show in the application output.
How can I solve this?
Thank you.
-
Anyone has an idea?
-
lldb
on Windows has an issue and it doesn't work in the same way in Qt Creator asgdb
orcdb
.There is a workaround though.
- Make sure to have Run in terminal checked
- Set the environment variable
QT_WIN_DEBUG_CONSOLE=attach
See the screen cast below:
-
I've opened up https://github.com/mstorsjo/llvm-mingw/issues/479 a bug upstream.