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

Debuggerview shows wrong values

XMLWordPrintable

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

      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

        1. screenshot.png
          34 kB
          Rainer Keller
        2. screenshot2.png
          73 kB
          Rainer Keller
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes