Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-32759

[Reg 14.0.2 -> 16.0.0] Application Output pane no longer prints stdout/stderr messages when debugging

    XMLWordPrintable

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

      1. Create a new "Qt Widgets Application" project and replace main.cpp with the code above
      2. Build the project in Debug mode
      3. Select "Build" > "Run"
      4. 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              davschul David Schulz
              skoh-qt Sze Howe Koh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes