{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/1835","repository_url":"https://api.github.com/repos/Microsoft/vscode-cpptools","labels_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/1835/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/1835/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/1835/events","html_url":"https://github.com/Microsoft/vscode-cpptools/issues/1835","id":314375232,"number":1835,"title":"How to view nested STL container in debugger - C++","user":{"login":"cv40067","id":38139103,"avatar_url":"https://avatars1.githubusercontent.com/u/38139103?v=4","gravatar_id":"","url":"https://api.github.com/users/cv40067","html_url":"https://github.com/cv40067","followers_url":"https://api.github.com/users/cv40067/followers","following_url":"https://api.github.com/users/cv40067/following{/other_user}","gists_url":"https://api.github.com/users/cv40067/gists{/gist_id}","starred_url":"https://api.github.com/users/cv40067/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cv40067/subscriptions","organizations_url":"https://api.github.com/users/cv40067/orgs","repos_url":"https://api.github.com/users/cv40067/repos","events_url":"https://api.github.com/users/cv40067/events{/privacy}","received_events_url":"https://api.github.com/users/cv40067/received_events","type":"User","site_admin":false},"labels":[{"id":355010938,"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/labels/debugger","name":"debugger","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":{"login":"WardenGnaw","id":3953714,"avatar_url":"https://avatars3.githubusercontent.com/u/3953714?v=4","gravatar_id":"","url":"https://api.github.com/users/WardenGnaw","html_url":"https://github.com/WardenGnaw","followers_url":"https://api.github.com/users/WardenGnaw/followers","following_url":"https://api.github.com/users/WardenGnaw/following{/other_user}","gists_url":"https://api.github.com/users/WardenGnaw/gists{/gist_id}","starred_url":"https://api.github.com/users/WardenGnaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WardenGnaw/subscriptions","organizations_url":"https://api.github.com/users/WardenGnaw/orgs","repos_url":"https://api.github.com/users/WardenGnaw/repos","events_url":"https://api.github.com/users/WardenGnaw/events{/privacy}","received_events_url":"https://api.github.com/users/WardenGnaw/received_events","type":"User","site_admin":false},"assignees":[{"login":"WardenGnaw","id":3953714,"avatar_url":"https://avatars3.githubusercontent.com/u/3953714?v=4","gravatar_id":"","url":"https://api.github.com/users/WardenGnaw","html_url":"https://github.com/WardenGnaw","followers_url":"https://api.github.com/users/WardenGnaw/followers","following_url":"https://api.github.com/users/WardenGnaw/following{/other_user}","gists_url":"https://api.github.com/users/WardenGnaw/gists{/gist_id}","starred_url":"https://api.github.com/users/WardenGnaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WardenGnaw/subscriptions","organizations_url":"https://api.github.com/users/WardenGnaw/orgs","repos_url":"https://api.github.com/users/WardenGnaw/repos","events_url":"https://api.github.com/users/WardenGnaw/events{/privacy}","received_events_url":"https://api.github.com/users/WardenGnaw/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-04-15T00:58:04Z","updated_at":"2018-04-16T22:47:09Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n  If this is a bug report, please give us as much information as possible so we can reproduce your issue.\r\n  Examples of information that can help us find and fix bugs:\r\n    * Operating System and version\r\n    * VS Code version and if you are using the Insiders build\r\n    * C/C++ extension version\r\n    * Other extensions you installed and if the issue persists after disabling them\r\n    * step-by-step instructions to reproduce the issue\r\n    * A small code sample, zipped up project, or open source repo we can use to verify the bug\r\n    * Relevant settings from your settings.json, c_cpp_properties.json, and/or launch.json files\r\n    * Any log messages present in the Output window (use \"C_Cpp.loggingLevel\": \"Information\" in settings.json)\r\n\r\n  Please also take a look at our documentation, as we may already have answers for your questions:\r\n    * https://github.com/Microsoft/vscode-cpptools/tree/master/Documentation\r\n\r\n  Thank you!\r\n-->\r\nvscode cannot display nested STL container in the debugger.\r\n\r\n\r\nFor example,say we have\r\ntypedef set<int>  A\r\ntypedef list<A> G\r\n  map<int, G > D;\r\n\r\nIN the debugger, the only data I can inspect is A. G and D both would show stuff like:\r\nstd::__cxx11::_List_base<std::set<int, std::less<int>, std::allocator<int> >, std::allocator<std::set<int, std::less<int>, std::allocator<int> > > >\r\n\r\n\r\nI have\r\n\r\n\"setupCommands\": [\r\n                {\r\n                    \"description\": \"Enable pretty-printing for gdb\",\r\n                    \"text\": \"-enable-pretty-printing\",\r\n                    \"ignoreFailures\": true\r\n                }\r\n            ]\r\n\r\nenabled. \r\n\r\nIf this intended, then how do we debug a complex data structure?\r\n\r\nAdvice is appreciated."},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/comments/381773854","html_url":"https://github.com/Microsoft/vscode-cpptools/issues/1835#issuecomment-381773854","issue_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/1835","id":381773854,"user":{"login":"WardenGnaw","id":3953714,"avatar_url":"https://avatars3.githubusercontent.com/u/3953714?v=4","gravatar_id":"","url":"https://api.github.com/users/WardenGnaw","html_url":"https://github.com/WardenGnaw","followers_url":"https://api.github.com/users/WardenGnaw/followers","following_url":"https://api.github.com/users/WardenGnaw/following{/other_user}","gists_url":"https://api.github.com/users/WardenGnaw/gists{/gist_id}","starred_url":"https://api.github.com/users/WardenGnaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WardenGnaw/subscriptions","organizations_url":"https://api.github.com/users/WardenGnaw/orgs","repos_url":"https://api.github.com/users/WardenGnaw/repos","events_url":"https://api.github.com/users/WardenGnaw/events{/privacy}","received_events_url":"https://api.github.com/users/WardenGnaw/received_events","type":"User","site_admin":false},"created_at":"2018-04-16T22:47:09Z","updated_at":"2018-04-16T22:47:09Z","author_association":"MEMBER","body":"The pretty-printers are provided by gdb itself and not our extension. I would verify that the version of gdb you are running has a pretty printer for that type.\r\n\r\nHere is a reference for the gdb command:\r\nhttps://sourceware.org/gdb/onlinedocs/gdb/Pretty_002dPrinter-Commands.html#Pretty_002dPrinter-Commands\r\n\r\nThere looks to be an issue with the std::list pretty printer."}}
{"actor":{"display_login":"WardenGnaw"}}