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

Debugging with cdb does not display QString behind '\0'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • Qt Creator 4.3.0-beta1
    • Qt Creator 3.5.0-rc1
    • Debugger
    • Windows 7 64 bit
      Qt 5.5.0
      MSVC2013 32 bit
      cdb 6.12

      1. Build the following code with MSVC2013:
                QString str = "Hello ";
                str += " big, ";
                str += "\t";
                str += "\r";
                str += "\n";
                str += QLatin1Char(0);
                str += QLatin1Char(1);
                str += " fat ";
                str += " World";
                str.prepend("Prefix: ");
        

        (Taken from function void testQString1() in tests\manual\debugger\simple\simple_test_app.cpp:3980.)

      2. Step through it with cdb.
      3. Look at the value displayed for str in Locals and Expressions view.
        You'll never see the " fat World" part. The displayed value ends at the 0.

      Creator should show the whole string. When compiling with MinGW and using gdb, this works correctly.

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

            davschul David Schulz
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes