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.7k 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 last edited by Wodzu
    #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...

    aha_1980A 1 Reply Last reply
    0
    • W Wodzu

      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

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 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 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...

        aha_1980A 1 Reply Last reply
        0
        • W Wodzu

          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

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 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 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...

            aha_1980A 1 Reply Last reply
            1
            • W Wodzu

              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 :)

              aha_1980A Offline
              aha_1980A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on 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 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...

                jsulmJ 1 Reply Last reply
                0
                • W Wodzu

                  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 :)

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 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 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

                    • Login

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