Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
Qt Creator 16.0.0
-
None
-
Windows 10 22H2
Description
The test at QTBUG-132350 shows that stderr messages used to be flushable to the Application Output pane when debugging. This is no longer the case in Qt Creator 16.0.0.
Code
#include <iostream> #include <QDebug> int main() { std::cout << "Hello\n"; fflush(stdout); std::cerr << "There\n"; fflush(stderr); qDebug() << "World"; }
Steps to reproduce
- Create a new "Qt Widgets Application" project and replace main.cpp with the code above
- Build the project in Debug mode
- Select "Build" > "Run"
- Select "Debug" > "Start Debugging" > "Start Debugging of Startup Project"
Expected Output (Step #3)
09:16:22: Starting D:\QtSupport\untitled30\build\Desktop_Qt_6_8_3_MSVC2022_64bit-Debug\debug\untitled30.exe... Hello There World 09:16:22: D:\QtSupport\untitled30\build\Desktop_Qt_6_8_3_MSVC2022_64bit-Debug\debug\untitled30.exe exited with code 0
Actual Output (Step #4)
09:16:28: Debugging D:\QtSupport\untitled30\build\Desktop_Qt_6_8_3_MSVC2022_64bit-Debug\debug\untitled30.exe ... World 09:16:29: Debugging of D:\QtSupport\untitled30\build\Desktop_Qt_6_8_3_MSVC2022_64bit-Debug\debug\untitled30.exe has finished.
Attachments
Issue Links
- replaces
-
QTCREATORBUG-32201 Application Output pane: Treat stderr as unbuffered
-
- Closed
-