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

Debugger window don't show correct std::vector variable when _GLIBCXX_DEBUG defined

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.10.1
    • Qt Creator 4.3.1
    • Debugger
    • None
    • Ubuntu 16.04-2
      gcc - 5.4.0
      gdb - 7.11.1
      QtCreator 4.3.1
      glibc++ 3.7.0

    Description

      #define _GLIBCXX_DEBUG
      #include <iostream>
      #include <vector>
      
      int main()
      {
          std::vector<int> vec(42, 10);
      
          for (const int & item : vec)
          {
              std::cout << item << std::endl; // set break point on this line
          }
          return 0;
      }
      

      If I debug this code with breakpoint on line 11, then variable vec is <not acessible>.
      But if i commented first line, vec isĀ <42 items>

      Attachments

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

        Activity

          People

            hjk hjk
            ralex100500 Alex Rodchenko
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes