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

Qt Creator debugger does not flush "Application Output" on every log call

    XMLWordPrintable

Details

    • macOS
    • e09867d7de8276e6a78b592fc8653d6241307614

    Description

      When doing frequent logging, "Application Output" can get behind, so when you hit a breakpoint, the log is NOT up to date, so you can't use logging as a debugging method.

      for example code, see this article.

      #include <QDebug>
      #include <unistd.h>
      
      int main(int argc, char *argv[])
      {
          for (int i = 0; i < 20; ++i) {
              qDebug() << "Printing line " << i << "\n";
          }
          int a = 0; // <-breakpoint here
      }
      

      Attachments

        1. debuggerlog.txt
          27 kB
          Tor Arne Vestbø

        Activity

          People

            hjk hjk
            davecotter David M. Cotter
            Votes:
            12 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: