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() ' can't output text
Forum Updated to NodeBB v4.3 + New Features

'qDebug() ' can't output text

Scheduled Pinned Locked Moved Solved General and Desktop
10 Posts 4 Posters 2.6k 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.
  • J Offline
    J Offline
    JoseLpd
    wrote on 29 Dec 2017, 15:58 last edited by
    #1

    Hi all~
    I can't get texts from qDebug() .Besides,when I quit the application,the 'application output' :
    QFileSystemWatcher::removePaths: list is empty
    QFileSystemWatcher::removePaths: list is empty

    what's meaning?

    How could I solve this problem?? Thanks!

    K J 2 Replies Last reply 29 Dec 2017, 17:28
    0
    • J JoseLpd
      29 Dec 2017, 15:58

      Hi all~
      I can't get texts from qDebug() .Besides,when I quit the application,the 'application output' :
      QFileSystemWatcher::removePaths: list is empty
      QFileSystemWatcher::removePaths: list is empty

      what's meaning?

      How could I solve this problem?? Thanks!

      K Offline
      K Offline
      koahnig
      wrote on 29 Dec 2017, 17:28 last edited by
      #2

      @JoseLpd

      Hi and welcome to devnet forum

      Probably a problem of howyou call the removePaths member function. You should also post at least the code snippets which are causing this output.

      Vote the answer(s) that helped you to solve your issue(s)

      J 1 Reply Last reply 30 Dec 2017, 01:31
      1
      • K koahnig
        29 Dec 2017, 17:28

        @JoseLpd

        Hi and welcome to devnet forum

        Probably a problem of howyou call the removePaths member function. You should also post at least the code snippets which are causing this output.

        J Offline
        J Offline
        JoseLpd
        wrote on 30 Dec 2017, 01:31 last edited by
        #3

        @koahnig sorry,I only output a text by qDebug() in simply main function.I not include the "QFileSystemWatcher" class

        1 Reply Last reply
        0
        • J JoseLpd
          29 Dec 2017, 15:58

          Hi all~
          I can't get texts from qDebug() .Besides,when I quit the application,the 'application output' :
          QFileSystemWatcher::removePaths: list is empty
          QFileSystemWatcher::removePaths: list is empty

          what's meaning?

          How could I solve this problem?? Thanks!

          J Offline
          J Offline
          jiancaiyang
          wrote on 30 Dec 2017, 03:25 last edited by
          #4

          @JoseLpd If you are using Debian related OS to write Qt program, we may well encounter this problem, which confuses me too.
          There is no sign to resolve the problem, incompatibility of libraries could be the root of the problem.
          I suggest writing qWarning() and qCritical() instead of qDebug().

          Or to installMessageHandler to redirect debug information to other places.

          我们自己的论坛:http://qtdream.com
          擅长三维角色仿真动画。

          J 1 Reply Last reply 30 Dec 2017, 06:37
          0
          • J jiancaiyang
            30 Dec 2017, 03:25

            @JoseLpd If you are using Debian related OS to write Qt program, we may well encounter this problem, which confuses me too.
            There is no sign to resolve the problem, incompatibility of libraries could be the root of the problem.
            I suggest writing qWarning() and qCritical() instead of qDebug().

            Or to installMessageHandler to redirect debug information to other places.

            J Offline
            J Offline
            JoseLpd
            wrote on 30 Dec 2017, 06:37 last edited by
            #5

            @jiancaiyang Thanks!But I don't know that meaning of 'QFileSystemWatcher::removePaths: list is empty'.I try to change another version(Qt5.9.3) and problem is same too .

            I use qInstallMessageHandler() to capture qWarning() qCritical() qDebug(),but qDebug() can't be captured.That's strange!

            J 1 Reply Last reply 30 Dec 2017, 09:32
            0
            • J JoseLpd
              30 Dec 2017, 06:37

              @jiancaiyang Thanks!But I don't know that meaning of 'QFileSystemWatcher::removePaths: list is empty'.I try to change another version(Qt5.9.3) and problem is same too .

              I use qInstallMessageHandler() to capture qWarning() qCritical() qDebug(),but qDebug() can't be captured.That's strange!

              J Offline
              J Offline
              jiancaiyang
              wrote on 30 Dec 2017, 09:32 last edited by
              #6

              @JoseLpd Try using qCDebug() instead qDebug().

              我们自己的论坛:http://qtdream.com
              擅长三维角色仿真动画。

              J 1 Reply Last reply 30 Dec 2017, 11:49
              0
              • J jiancaiyang
                30 Dec 2017, 09:32

                @JoseLpd Try using qCDebug() instead qDebug().

                J Offline
                J Offline
                JoseLpd
                wrote on 30 Dec 2017, 11:49 last edited by
                #7

                @jiancaiyang Useless and still the same problem.Among these qCWarning qCDebug qCCritical,only qCDebug can't output message

                A 1 Reply Last reply 30 Dec 2017, 12:02
                0
                • J JoseLpd
                  30 Dec 2017, 11:49

                  @jiancaiyang Useless and still the same problem.Among these qCWarning qCDebug qCCritical,only qCDebug can't output message

                  A Offline
                  A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on 30 Dec 2017, 12:02 last edited by
                  #8

                  @JoseLpd said in 'qDebug() ' can't output text:

                  @jiancaiyang Useless and still the same problem.Among these qCWarning qCDebug qCCritical,only qCDebug can't output message

                  Hi, have you tried the suggestions from https://brendanwhitfield.wordpress.com/2016/06/08/enabling-qdebug-on-fedora/ ?

                  Qt has to stay free or it will die.

                  J 1 Reply Last reply 31 Dec 2017, 13:39
                  2
                  • A aha_1980
                    30 Dec 2017, 12:02

                    @JoseLpd said in 'qDebug() ' can't output text:

                    @jiancaiyang Useless and still the same problem.Among these qCWarning qCDebug qCCritical,only qCDebug can't output message

                    Hi, have you tried the suggestions from https://brendanwhitfield.wordpress.com/2016/06/08/enabling-qdebug-on-fedora/ ?

                    J Offline
                    J Offline
                    JoseLpd
                    wrote on 31 Dec 2017, 13:39 last edited by
                    #9

                    @aha_1980 thank you very much!The problem is solved :)

                    A 1 Reply Last reply 31 Dec 2017, 13:41
                    2
                    • J JoseLpd
                      31 Dec 2017, 13:39

                      @aha_1980 thank you very much!The problem is solved :)

                      A Offline
                      A Offline
                      aha_1980
                      Lifetime Qt Champion
                      wrote on 31 Dec 2017, 13:41 last edited by
                      #10

                      @JoseLpd Cool. then please mark this thread as Solved.

                      Happy New Year!

                      Qt has to stay free or it will die.

                      1 Reply Last reply
                      1

                      1/10

                      29 Dec 2017, 15:58

                      • Login

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