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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -