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

cannot change value of QString and std::string variables in locals view

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • Qt Creator 10.0.0-beta1
    • Debugger
    • VS2022, Qt 6.4.1
    • Windows

    Description

      I have the following code in my test program:

          QString qs = u"foo"_qs;
          std::string s = "foo";
          int i = 156;
          qDebug() << qs << s.c_str() << i;
      

      with a breakpoint at the last line.

      Once the breakpoint is hit, I change the values of i, s and qs in the locals view.
      For the int it works fine.

      For the string types, the view immediately reverts to the original value.

      Attachments

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

        Activity

          People

            davschul David Schulz
            jbornema Joerg Bornemann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes