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. When debugging, variable value is not shown under mouse button.
Forum Updated to NodeBB v4.3 + New Features

When debugging, variable value is not shown under mouse button.

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 3 Posters 1.8k 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.
  • W Offline
    W Offline
    Wodzu
    wrote on 10 Apr 2019, 11:23 last edited by Wodzu 4 Oct 2019, 11:24
    #1

    Hi,

    When debugging under Qt Creator 4.8.2 (with debug symbols on) I see all values of all local variables on the "Locals" window.
    However, very often I don't see these values when I hover mouse over a variable. What is cusing this, how can I fix this?
    This is not an issue of missing symbols but an issue with Qt Creator. What to do?

    Thank you,

    Wodzu

    As above so below...

    A 1 Reply Last reply 10 Apr 2019, 11:57
    0
    • W Wodzu
      10 Apr 2019, 11:23

      Hi,

      When debugging under Qt Creator 4.8.2 (with debug symbols on) I see all values of all local variables on the "Locals" window.
      However, very often I don't see these values when I hover mouse over a variable. What is cusing this, how can I fix this?
      This is not an issue of missing symbols but an issue with Qt Creator. What to do?

      Thank you,

      Wodzu

      A Offline
      A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 10 Apr 2019, 11:57 last edited by
      #2

      @Wodzu

      Might be a silly question, but did you enable Tools > Options > Debugger > General > "Use tooltips in main editor while debugging"?

      I always turn these off as they disturb me, so I probably cannot help you if the problem exists when the tooltip is enabled.

      Regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      2
      • W Offline
        W Offline
        Wodzu
        wrote on 10 Apr 2019, 13:00 last edited by
        #3

        Hi, thank you for your response.

        Not a silly question, but I have this turned on. Thanks for trying, I appreciate it:)
        It is not that all values are not shown, just some of them. I've tested on a very simple project and it works. It does not work on more complicated program. Take look here:

        0_1554901162280_a1eb12a5-29d5-4a88-ad6c-d2f580994a4c-image.png

        See? Value is initialized, tooltip is shown but it is empty :(

        Best regards,

        Wodzu

        As above so below...

        A 1 Reply Last reply 11 Apr 2019, 07:00
        0
        • W Wodzu
          10 Apr 2019, 13:00

          Hi, thank you for your response.

          Not a silly question, but I have this turned on. Thanks for trying, I appreciate it:)
          It is not that all values are not shown, just some of them. I've tested on a very simple project and it works. It does not work on more complicated program. Take look here:

          0_1554901162280_a1eb12a5-29d5-4a88-ad6c-d2f580994a4c-image.png

          See? Value is initialized, tooltip is shown but it is empty :(

          Best regards,

          Wodzu

          A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 11 Apr 2019, 07:00 last edited by
          #4

          @Wodzu said in When debugging, variable value is not shown under mouse button.:

          I've tested on a very simple project and it works. It does not work on more complicated program.

          I see - very strange indeed. If you manage to reproduce it with a minimal example, you can create a bug at bugreports.qt.io - and please add a link here for reference.

          Qt has to stay free or it will die.

          1 Reply Last reply
          0
          • W Offline
            W Offline
            Wodzu
            wrote on 13 Apr 2019, 11:01 last edited by
            #5

            Hi,

            I've managed to reproduce it, very simple example:

            0_1555153217133_640939ee-a7f2-4ef6-acde-56fa767281c9-image.png

            It looks like lambda definition is doing something to the IDE :) Now I will go for a lengthy process do report the bug :)

            As above so below...

            A 1 Reply Last reply 13 Apr 2019, 12:17
            1
            • W Wodzu
              13 Apr 2019, 11:01

              Hi,

              I've managed to reproduce it, very simple example:

              0_1555153217133_640939ee-a7f2-4ef6-acde-56fa767281c9-image.png

              It looks like lambda definition is doing something to the IDE :) Now I will go for a lengthy process do report the bug :)

              A Offline
              A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on 13 Apr 2019, 12:17 last edited by
              #6

              @Wodzu

              It looks like lambda definition is doing something to the IDE :) Now I will go for a lengthy process do report the bug :)

              Ah, thanks for finding. Which compiler is that? Older GCC versions e.g. are known for not generating enough debug information with regard to lambdas. In that case, the debugger (and the IDE) can not do much...

              Qt has to stay free or it will die.

              1 Reply Last reply
              0
              • W Offline
                W Offline
                Wodzu
                wrote on 13 Apr 2019, 12:26 last edited by Wodzu
                #7

                Hi,

                it is GCC 8.2. But it can't be a debugger issue, it is clearly the IDE issue, because you see the value of my_string in "Locals" window :)

                As above so below...

                J 1 Reply Last reply 15 Apr 2019, 04:51
                0
                • W Wodzu
                  13 Apr 2019, 12:26

                  Hi,

                  it is GCC 8.2. But it can't be a debugger issue, it is clearly the IDE issue, because you see the value of my_string in "Locals" window :)

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 15 Apr 2019, 04:51 last edited by
                  #8

                  @Wodzu Did you check the QtCreator bug tracker?

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • W Offline
                    W Offline
                    Wodzu
                    wrote on 15 Apr 2019, 06:25 last edited by
                    #9

                    @jsulm Yes, there was no such bug report, I've created one: https://bugreports.qt.io/browse/QTCREATORBUG-22296

                    As above so below...

                    1 Reply Last reply
                    1

                    1/9

                    10 Apr 2019, 11:23

                    • Login

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