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

qDebug output in QtCreator gets scrambled for long strings

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • Qt Creator 4.13.0
    • Debugger
    • None
    • Qt 5.14.1/MinGW 32-bit/GDB
    • Windows

    Description

      Qt Creator 4.13.0, 

      Based on Qt 5.15.0 (MSVC 2019, 64 bit) Built on Aug 25 2020 10:06:59 From revision fff3b41833

      In the "Application Output" window long strings get scrabled after some 100 characters (1026 in my example). This minimal example shows the described effect:

      #include "mainwindow.h" 
      
      #include <QDebug>
      #include <QApplication>
      
      int main(int argc, char *argv[])
      {
        QApplication a(argc, argv); 
      
        MainWindow w; w.show();  
      
        qDebug() << "------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------";   
      
        return a.exec();
      }
      

       Something very similar was reported in older versions of QtCreator but not fixed: QTCREATORBUG-17117

      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
              hom Holger Mairon
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes