title: Can't see the contents of vector or other containers (e.g map) while debugging (C++ program) in Visual Studio Code
body: <p>I have written a simple <code>C++(11)</code> program to test the debugger in Visual studio code in Windows. I am using MinGW distributions for compiler options. 
  I have setup my <code>tasks.json</code> and <code>launch.json</code> as per the doc here:
  <a href="https://code.visualstudio.com/docs/cpp/config-mingw" rel="nofollow noreferrer">https://code.visualstudio.com/docs/cpp/config-mingw</a></p>
  
  <p>Here is the sample cpp code:</p>
  
  <pre><code>typedef std::vector&lt;int&gt; vi;    
  int main(int argc, char const *argv[])
  {
      fast();
      int tests = 1;
      cin &gt;&gt; tests;
      while(tests--)
      {
          int n = 5, k = 25;
          cin &gt;&gt; n &gt;&gt; k;
          vi permutation(n);
          for (int i = 0; i &lt; n; i++)
          {
              cin &gt;&gt; permutation[i];
          }
  
          // vi permutation = {5,4,3,2,1};
          auto ans = solve(permutation, k);
         // other logic goes here
  
      }
      return 0;
  }
  </code></pre>
  
  <p>My <code>tasks.json</code> file:</p>
  
  <pre><code>{
      "version": "2.0.0",
      "tasks": [
          {
              "type": "shell",
              "label": "C/C++: g++.exe build active file",
              "command": "C:\\MinGW\\bin\\g++.exe",
              "args": [
                  "-g",
                  "-std=c++11",
                  "${file}",
                  "-o",
                  "${fileDirname}\\${fileBasenameNoExtension}.exe"
              ],
              "options": {
                  "cwd": "C:\\MinGW\\bin"
              },
              "problemMatcher": [
                  "$gcc"
              ],
              "group": {
                  "kind": "build",
                  "isDefault": true
              },
              "presentation": {
                  "echo": false,
                  "reveal": "always",
                  "focus": true,
                  "panel": "shared",
                  "clear": false,
                  "showReuseMessage": false
              },
          }
      ]
  }
  </code></pre>
  
  <p>My <code>launch.json</code> file:</p>
  
  <pre><code>{
      // Use IntelliSense to learn about possible attributes.
      // Hover to view descriptions of existing attributes.
      // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
      "version": "0.2.0",
      "configurations": [
          {
              "name": "g++.exe - Build and debug active file",
              "type": "cppdbg",
              "request": "launch",
              "program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
              "args": [],
              "stopAtEntry": true,
              "cwd": "${workspaceFolder}",
              "environment": [],
              "externalConsole": true,
              "MIMode": "gdb",
              "miDebuggerPath": "C:\\MinGW\\bin\\gdb.exe",
              "setupCommands": [
                  {
                      "description": "Enable pretty-printing for gdb",
                      "text": "-enable-pretty-printing",
                      "ignoreFailures": true
                  }
              ],
              "preLaunchTask": "C/C++: g++.exe build active file"
          }
      ]
  }
  </code></pre>
  
  <p>I am seeing this in the debugger window:
  <a href="https://i.stack.imgur.com/qN8jp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qN8jp.png" alt="enter image description here"></a></p>
  
  <p>As per the doc, I should see a screen something like this:
  <a href="https://i.stack.imgur.com/l9OEn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/l9OEn.png" alt="enter image description here"></a></p>
  
  <p>Am I setting something wrong here? Why am I not seeing the content of containers? I have observed that I can't see the values of other containers also.</p>