c++ - How to see values of std::list in CLion debugger -
i cannot see values of std::list in clion debugger (my clion version 2017.2). example, @ following code;
int main() { int myarray[4] = {0,9,8,7}; std::vector<int> myvec(4); std::list<int> mylist(4); return 0; }
if run code in debug mode, can see values of std::vector , array not std::list. what's solution except getting iterator list (e.g "it") , add watch "*it" in watch window below;
for (auto it=mylist.begin(); != mylist.end(); ++it) { ... }
Comments
Post a Comment