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

Debugger CDB shows incorrect values for members of a class contained in QList

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 4.2.0
    • Qt Creator 4.0.2
    • Debugger
    • None
    • Qt 5.7.0 MSVC 2015 32bit
      QtCreator 4.0.2
      CDB version: 10.0.10586.567 (32 bit)
    • 9ce19c5dacfece96bd2377e06dfd72e9ce27a4e7

    Description

      When I try to debug a QList that contains a user defined class/struct with member variables, it shows wrong/random values instead of what was set. If I print QList's contents to console they are shown correctly.

      See attachments for code.

      Put a breakpoint on the return line in main. When I run and look at the Locals and Expressions view the list contains a Classy with some random number, not 12.

      Note: I think this only affects QList, I have also tried with QVector and QStack, both worked correctly for me.

      Attachments

        1. main.cpp
          0.3 kB
        2. untitled.pro
          0.1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            davschul David Schulz
            viktorianemkin Viktória Nemkin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes