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

Debugger sorts array elements lexicographically, not numerically

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 4.6.2
    • Debugger
    • None
    • Windows

      When an array is expanded in the debugger, the element indices are shown as [0], [1], [2], etc. However it seems to be treating the element indices as ordinary variable names and sorting them lexicographically rather than keeping them in the order that the elements appear in the array.

      For example, if you have an array with 12 elements you will see:

      [0]
      [1]
      [10] <--\
      [11] <---+- these should be after element [9] !!
      [12] <--/
      [2]
      [3]
      [4]
      [5]
      [6]
      [7]
      [8]
      [9]

      I'm using the CDB debugging support on Windows with MSVC rather than MinGW. I don't have the python dumper enabled.

       

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes