Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. qDebug() outputs only to QtCreator panel, but not to the cmd window
Forum Updated to NodeBB v4.3 + New Features

qDebug() outputs only to QtCreator panel, but not to the cmd window

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 2.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • nulluseN Offline
    nulluseN Offline
    nulluse
    wrote on last edited by
    #1

    Throughtout the project there are a few qDebug() calls that dump tons of output to the Application Output panel. However when I run the same program on the Windows command window there is no output whatsoever. What am I doing wrong?

    1 Reply Last reply
    0
    • hskoglundH Offline
      hskoglundH Offline
      hskoglund
      wrote on last edited by
      #2

      Hi, you're doing nothing wrong, no output in the CMD window is the expected behavior. Instead, you can download DebugView it can show the qDebug() calls.

      1 Reply Last reply
      -1
      • nulluseN Offline
        nulluseN Offline
        nulluse
        wrote on last edited by
        #3

        You cannot be serious.

        1 Reply Last reply
        0
        • Paul ColbyP Offline
          Paul ColbyP Offline
          Paul Colby
          wrote on last edited by
          #4

          @hskoglund said:

          no output in the CMD window is the expected behavior

          It may be the expected default behaviour, but I'm pretty sure its changeable.

          If I remember correctly (don't have a Windows host handy), you need to add:

          CONFIG += console
          

          to your build (eg *.pro file) if you want such output in release builds.

          See, for example, this old thread: qDebug() under Windows.

          Cheers.

          1 Reply Last reply
          1
          • nulluseN Offline
            nulluseN Offline
            nulluse
            wrote on last edited by
            #5

            @Paul-Colby said:

            @hskoglund said:

            no output in the CMD window is the expected behavior

            It may be the expected default behaviour, but I'm pretty sure its changeable.

            If I remember correctly (don't have a Windows host handy), you need to add:

            CONFIG += console
            

            to your build (eg *.pro file) if you want such output in release builds.

            See, for example, this old thread: qDebug() under Windows.

            Cheers.

            Marvelous! You restored my faith in humanity!

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved