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() output limited?

qDebug() output limited?

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 5 Posters 1.5k Views 2 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.
  • SPlattenS Offline
    SPlattenS Offline
    SPlatten
    wrote on last edited by SPlatten
    #1

    I have a QString that I am processing and stripping out whitespace that isn't included in single or double quotes.

    I then dump this to the console using:

        qDebug() << __FILE__ << __LINE__ << strProcessed;
    

    The output I see in the Application Output has been cut short, I know this because I've checked using the debugger and I can see the strProcessed actually contains 3279 bytes of data with no null terminator in the content.

    Is there any way to get qDebug to dump everything?

    I am using Qt Creator:

        Qt Creator 4.11.2
        Based on Qt 5.14.2 (Clang 10.0 (Apple), 64 bit)
        Built on Mar 27 2020 02:24:45
        From revision 699407b4ba
    

    The project is built for:

        Desktop Qt 5.14.2 clang 64 bit
    

    Kind Regards,
    Sy

    1 Reply Last reply
    0
    • SPlattenS Offline
      SPlattenS Offline
      SPlatten
      wrote on last edited by
      #4

      Actually now the routine where I have the processed output is complete and working the processed output is not much smaller. So its no longer an issue, but good to be aware of for the future.

      Kind Regards,
      Sy

      Pablo J. RoginaP 1 Reply Last reply
      0
      • Christian EhrlicherC Online
        Christian EhrlicherC Online
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #2

        @SPlatten said in qDebug() output limited?:

        Is there any way to get qDebug to dump everything?

        No.

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        1
        • T Offline
          T Offline
          Taytoo
          wrote on last edited by
          #3

          Qt uses underlying APIs for debug output, in case of Windows it probably uses OutputDebugString which has a limit of less than 4K and looks like you're almost reaching that limit.

          Why not just split the strProcessed into smaller strings and output them individually?

          1 Reply Last reply
          2
          • SPlattenS Offline
            SPlattenS Offline
            SPlatten
            wrote on last edited by
            #4

            Actually now the routine where I have the processed output is complete and working the processed output is not much smaller. So its no longer an issue, but good to be aware of for the future.

            Kind Regards,
            Sy

            Pablo J. RoginaP 1 Reply Last reply
            0
            • Christian EhrlicherC Online
              Christian EhrlicherC Online
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #5

              If you want proper logging output use a proper logging mechanism and no stuff which is only for developers during debugging.

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              1 Reply Last reply
              2
              • H Offline
                H Offline
                Hernandez
                wrote on last edited by Hernandez
                #6

                While on linux it works fine, on Windows I'm unable to see any qDebug() output Walgreenslistens. What could possibly be wrong? I'm using the Eclipse integration. I'm pretty sure I'm building a debug version. The run configuration is pointing at MyApp.exe in the debug folder.

                1 Reply Last reply
                -1
                • Christian EhrlicherC Online
                  Christian EhrlicherC Online
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote on last edited by
                  #7

                  Don't know why you don't open a new thread since this has nothing to do with the one you hijacked but take a look at the qmake CONFIG option console

                  Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                  Visit the Qt Academy at https://academy.qt.io/catalog

                  1 Reply Last reply
                  1
                  • SPlattenS SPlatten

                    Actually now the routine where I have the processed output is complete and working the processed output is not much smaller. So its no longer an issue, but good to be aware of for the future.

                    Pablo J. RoginaP Offline
                    Pablo J. RoginaP Offline
                    Pablo J. Rogina
                    wrote on last edited by
                    #8

                    @SPlatten said in qDebug() output limited?:

                    So its no longer an issue

                    So please don't forget to mark your post as solved!

                    Upvote the answer(s) that helped you solve the issue
                    Use "Topic Tools" button to mark your post as Solved
                    Add screenshots via postimage.org
                    Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                    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