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

Debuggerview shows wrong values

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • Qt Creator 4.10.2
    • Debugger
    • None
    • Linux/X11
    • 710836f2223554e056f281a3762440df78a23aae

    Description

      There is a function returning a std::optional

      struct Foo {
          qsizetype a;
          qsizetype b;
      }
      
      std::optional<Foo> myFunction() {
          return Foo {.a = 1, .b = 0};
      }
      

      The convenience view show the value as 0

      but the actual value, when disabling the debugger helpers via context menu, is 1

      Attachments

        1. screenshot.png
          screenshot.png
          34 kB
        2. screenshot2.png
          screenshot2.png
          73 kB

        Issue Links

          Activity

            People

              hjk hjk
              rakeller Rainer Keller
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: