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

QDebug output in qtcreator after setting custom QtMessageHandler

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • Qt Creator 10.0.0
    • Debugger, Terminal
    • None
    • win10 64bit; qt5.12.12 mingw/qt5.12.12 msvc
    • Windows

    Description

      I want to save the QDebug message to a log file, so I set QtMessageHandler.

      And I still want the message display in qtcreator's view Application Output,

      so I use std::cout/std::cerr to print the message in my custom QtMessageHandler.

      When I run app, msg can display both in mingw and msvc build kit, but things differs when I debug app :

      The msg can display in mingw/gdb, but can't in msvc/cdb.

      Is it an issue of qtc?

      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
              charlesliao 成 廖
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes