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

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -