Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-76280

qSetMessagePattern() doesn't work inside the debugger

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.12.3
    • Core: Other
    • None
    • - macOS 10.14.5
      - Qt Creator 4.9.1
      - Qt 5.12.3
    • macOS

    Description

      I notice two different output with the following program:

       #include <QCoreApplication>
       #include <QDebug>
      
      int main(int argc, char *argv[]) {
       QCoreApplication a(argc, argv);
      
      qSetMessagePattern("message: %
      
      {message}
      
      ");
       qDebug() << "A debug message";
       return 0;
       }
       

      If I run it normally I have the expected output:

       message: A debug message
      

      If I run the debugger instead, I have the following output:

       2019-06-07 15:40:40.706939+0200 category-logging[49221:2034723] A debug message
      

      As you can see the `qSetMessagePattern()` call is not taken into account.

      I check with Qt 5.9.8 and it runs fine.

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            martindelille Martin Delille
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes