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

Unable to step into

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • Qt Creator 14.0.0-beta1
    • Debugger
    • Linux/Wayland

    Description

      Unable to "step into" when debugging this code:

      #include <unordered_map>
      #include <iostream>
      #include <QString>
      
      int main(int argc, char *argv[])
      {
          std::unordered_map<int, QString> mapq;
          mapq[1] = "one";
          mapq[2] = "two";
          mapq[3] ="thre";
      
          size_t i = 0;
          // size_t i = 0;
          for (const auto &md : mapq) {
              std::cout << "{ key: " << md.first << ", value: " << md.second.toStdString();
              if (++i < mapq.size())
                  std::cout << " }, " << std::endl;
              else
                  std::cout << " }" << std::endl;
          }
      
          return 0;
      }
      

      I tried to step into on the fourth breakpoint, expecting that the debugger will show the QString::toStdString() body at some point but it didn't.

      Attachments

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

        Activity

          People

            hjk hjk
            semlanik Alexey Edelev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes