Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-21258

Text values of enums are not shown in Locals debugger view

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 4.7.1
    • Debugger
    • macOS 10.13.6, Xcode 9.2, Qt 5.11.1
    • macOS

    Description

      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".

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

      About the 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".

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hjk hjk
            rosetter Tyler Daniel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes