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

QDebug output in qtcreator after setting custom QtMessageHandler

XMLWordPrintable

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

      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?

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

            davschul David Schulz
            charlesliao 成 廖
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes