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

QDebug Sends Output to Journald instead of "Application Output" Window

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 3.3.0
    • Debugger
    • None

      Recent Qt versions support journald. When stderr is not a tty device, then QDebug is redirected to journald. Seems reasonable.

      However, for use in the Qt Creator IDE, this obviously doesn't fit well with receiving QDebug in the "Application Output" pane when in debug mode.

      The quick and easy work around is just to add "QT_LOGGING_TO_CONSOLE" to the run configuration of the project.

      But clearly, this workaround shouldn't be necessary. It makes sense for Qt Creator to set this environment variable by default so that when in the IDE, QDebug goes to the "Application Output" pane, which is the expected behavior.

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

            kkohne Kai Köhne
            zx2c4 Jason A. Donenfeld
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes