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

The values of all composite type variables in "Locals and Expressions" are Not Accessible

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 4.5.1, Qt Creator 4.6.0 , Qt Creator 4.7.0
    • Debugger
    • None
    • Windows 7, 64bit, Windows 10, 64bit
      QT 5.9, QT 5.10.1
      MSVC 2015_64
    • Windows

    Description

      Since Qt Creator 4.5 I can't view the values of composite types in "Locals and Expressions" while debugging.

      QtCreator of version 4.4.1 works fine. For versions 4.5, 4.6, 4.7 variables are not accessible.

      This problem appears on two diffrent computers on WIn7 and Win10. The only difference is Qt Creator version.

      Example:

      #include <QDebug>
      
      class Class1
      {
      public:
          Class1(int v1, int v2)
              : val1(v1)
              , val2(v2)
          {
          }
          int val1;
          int val2;
      };
      
      int main(int argc, char *argv[])
      {
          QList<Class1> list;
          list.push_back(Class1(1, 2));
          list.push_back(Class1(3, 4));
          list.push_back(Class1(5, 6));
      
          qDebug() << list[0].val1;
      
      }
      

      Attachments

        1. 4.4.1.png
          4.4.1.png
          34 kB
        2. 4.7.png
          4.7.png
          20 kB
        3. DebuggerLog.4.7.zip
          4 kB
        4. image-2018-09-27-16-50-13-613.png
          image-2018-09-27-16-50-13-613.png
          37 kB

        Issue Links

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

          Activity

            People

              davschul David Schulz
              tetsuzin72 Pavel Efimov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes