Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Not Evaluated
-
Resolution: Done
-
Affects Version/s: Qt Creator 4.3.1
-
Fix Version/s: Qt Creator 4.10.1
-
Component/s: Debugger
-
Labels:None
-
Environment: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>