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. Wanna watch correctly variables in Locals and expressions
Forum Updated to NodeBB v4.3 + New Features

Wanna watch correctly variables in Locals and expressions

Scheduled Pinned Locked Moved General and Desktop
8 Posts 2 Posters 2.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.
  • C Offline
    C Offline
    Charlie_Hdz
    wrote on last edited by
    #1

    I work at VS and I am accustomed to use the watch with no abbreviations types of variables such that:

    declares an unsigned long long.

    and we would have something like VS

    00000001-00000002

    but Qt abbreviate as follows:

    2

    i try to change some things but it seems not work ...

    Thank You Very much

    Kind Regards,
    Enrique Hernandez
    gearstech.com.mx
    chernandez@gearstech.com.mx

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      If an unsigned long long has a value of 2, and that is what your debugger, not Qt, is showing. What exactly is the problem?

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Charlie_Hdz
        wrote on last edited by
        #3

        Is the debugger... dont show me completly the values of the variables ... such unsigned long long:

        00000001-00000002

        and shown me only one character

        2

        I abled/disabled the Debug Helpers and dont change the problem.

        Kind Regards,
        Enrique Hernandez
        gearstech.com.mx
        chernandez@gearstech.com.mx

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Charlie_Hdz
          wrote on last edited by
          #4

          When i click the button of Debug Qt send me a message box,

          "Debugging Helper Missing"

          The debugging could not load the debugging helper library.

          and i open the Qt option/Bulid&Run and show that the Qml Viewer is not installed

          Kind Regards,
          Enrique Hernandez
          gearstech.com.mx
          chernandez@gearstech.com.mx

          1 Reply Last reply
          0
          • C Offline
            C Offline
            ChrisW67
            wrote on last edited by
            #5

            We can assume Windows. What compiler? What debugger? What versions of compiler, debugger, Qt and Qt Creator?

            1 Reply Last reply
            0
            • C Offline
              C Offline
              Charlie_Hdz
              wrote on last edited by
              #6

              In Ubuntu 13.10

              Compiler: GCC

              Debugger:GDB

              and the Qt Creator version is: Qt5.1

              Thank you for you collaboration.

              Kind Regards,
              Enrique Hernandez
              gearstech.com.mx
              chernandez@gearstech.com.mx

              1 Reply Last reply
              0
              • C Offline
                C Offline
                ChrisW67
                wrote on last edited by
                #7

                The gdb debugger on Linux does not require compiled debugger helpers and I have not seen a message like that since Qt Creator V 2.4. You are probably using Qt Creator 3 if it is the one bundled with Qt 5.1; if not, you should be. You need at least version 7.2 of gdb (type "gdb -v" at a command prompt).

                Ultimately though I still do not see a problem. If an integer has a value of two then there is no difference between displaying that as "2" or "00000002". The second is no more "correct" or "full" a value. Trying to make the debugger output from gdb on a different platform match the output from Visual Studio is a fool's errand.

                If you right click on a value in the Qt Creator Locals panel you can "Change Local Display Format" to hex, binary etc. if that helps.

                If you think the displayed value is actually wrong then post a small program that displays the incorrect value when inspected.

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  Charlie_Hdz
                  wrote on last edited by
                  #8

                  Hi ChrisW67- thank you very much

                  You argument take much attention to me and i decided take a deply look for my code

                  And i saw an error about logical operations, so i fixed it and the debugger run perfectly.

                  So, i do some test (like set a value into hexadecimal view) and everthing works.

                  See you son

                  Kind Regards,
                  Enrique Hernandez
                  gearstech.com.mx
                  chernandez@gearstech.com.mx

                  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