Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to view enum names in Creator debugger?
QtWS25 Last Chance

How to view enum names in Creator debugger?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
creator
5 Posts 2 Posters 1.4k Views
  • 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.
  • R Offline
    R Offline
    rosetter
    wrote on 3 Oct 2018, 02:27 last edited by
    #1

    Hi, the debugger view in Creator only shows integer values for enums instead of the names.

    For example, if I break in a function with:

    enum Fruit { Apple, Orange } fruit;
    fruit = Orange;
    

    The Locals view shows a value of "1" instead of "Orange".

    I'm using Creator 4.7.1, Qt 5.11.1 on a Mac (High Sierra).

    Is there some new setting that I'm missing?

    This looks like bug 20934 but that is marked as fixed in this version of Creator.

    Any suggestions?

    A 1 Reply Last reply 3 Oct 2018, 08:50
    0
    • R rosetter
      3 Oct 2018, 02:27

      Hi, the debugger view in Creator only shows integer values for enums instead of the names.

      For example, if I break in a function with:

      enum Fruit { Apple, Orange } fruit;
      fruit = Orange;
      

      The Locals view shows a value of "1" instead of "Orange".

      I'm using Creator 4.7.1, Qt 5.11.1 on a Mac (High Sierra).

      Is there some new setting that I'm missing?

      This looks like bug 20934 but that is marked as fixed in this version of Creator.

      Any suggestions?

      A Offline
      A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 3 Oct 2018, 08:50 last edited by
      #2

      hi @rosetter,

      as I wrote in the report, only CDB was affected, GDB worked fine. Which debugger do you use?

      if the minimal example from the bugreport still fails for you, we could reopen the bug.

      Qt has to stay free or it will die.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rosetter
        wrote on 4 Oct 2018, 03:03 last edited by
        #3

        Oops, I forgot to say that I'm using lldb.

        It does fail.. I'll attach a screenshot.

        In the debugger log you can see the verison of lldb (900.0.64), the values of e and f are "2" in the Locals view, but "frame variable" entered manually in the debugger console shows the expected value of "c".

        My guess would be an incompatibility with the latest Xcode tools..
        0_1538622223698_bug-20934-lldb.png

        A 1 Reply Last reply 4 Oct 2018, 06:27
        0
        • R rosetter
          4 Oct 2018, 03:03

          Oops, I forgot to say that I'm using lldb.

          It does fail.. I'll attach a screenshot.

          In the debugger log you can see the verison of lldb (900.0.64), the values of e and f are "2" in the Locals view, but "frame variable" entered manually in the debugger console shows the expected value of "c".

          My guess would be an incompatibility with the latest Xcode tools..
          0_1538622223698_bug-20934-lldb.png

          A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 4 Oct 2018, 06:27 last edited by
          #4

          Hi @rosetter,

          probably best would be to create a new bugreport, as your output looks a bit different from QTCREATORBUG-20934.

          In principle attach the same information you showed here.

          PS: please add a link to the new report here. Thanks!

          Qt has to stay free or it will die.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on 10 Oct 2018, 06:12 last edited by
            #5

            @rosetter The bug report is QTCREATORBUG-21258

            Qt has to stay free or it will die.

            1 Reply Last reply
            1

            1/5

            3 Oct 2018, 02:27

            • Login

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