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

Debugger incorrectly says a std::vector has 0 elements

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • Qt Creator 4.7.2
    • Qt Creator 4.7.0
    • Debugger
    • None
    • Windows 10, Microsoft Visual Studio 2015, QtCreator 4.7.0, tested using both Qt 5.6.1 and Qt 5.11
    • Windows

      I have a struct with a member variable which is a std::vector. On Windows, using CDB and with the "use python dumper" option disabled, the debugger always reports that this vector contains zero elements regardless of how many elements are really in it.

      The problem doesn't occur when the python dumper is enabled. I have it disabled currently because of bugs QTCREATORBUG-19356 and QTCREATORBUG-20639.

        1. DebuggerSTLVectorBug.zip
          3 kB
          Vilya Harvey
        2. DebuggerSTLVectorBug.zip
          3 kB
          Vilya Harvey
        For Gerrit Dashboard: QTCREATORBUG-21074
        # Subject Branch Project Status CR V

            davschul David Schulz
            vilya Vilya Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes