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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: Qt Creator 3.3.0
    • Fix Version/s: None
    • Component/s: Debugger
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

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

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes