No output in "Application Output" with debugger
-
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.
-
C cristian-adam referenced this topic
-
same issue with QtCreator 15.0.0 and 17.0.0 on Windows 11 using either KIT 6.4.1 MSVC 2019 64bit or 6.9.1 MSVC 2022 64 bit
quite problematic isn't it?!? how come oO
can't debug properly anymore without @cristian-adam workaround... (on Windows)