title: Cannot Debug C++ in VS Code
body: <p>I want to debug my C++ code in VSCode, but after I pressed <code>F5</code>, the external console didn't pop up as expected.</p>
  
  <p>launch.json</p>
  
  <pre><code>{
      "version": "0.2.0",
      "configurations": [
          {
              "name": "C++ Debug",
              "type": "cppdbg",
              "request": "launch",
              "program": "${fileDirname}\\${fileBasenameNoExtension}",
              "args": [],
              "stopAtEntry": true,
              "cwd": "${fileDirname}",
              "environment": [],
              "externalConsole": true,
              "internalConsoleOptions": "neverOpen",
              "MIMode": "gdb",
              "miDebuggerPath": "E:\\MinGW\\mingw64\\bin\\gdb.exe",
              "setupCommands": [
                  {
                      "description": "Enable pretty-printing for gdb",
                      "text": "-enable-pretty-printing",
                      "ignoreFailures": false
                  }
              ],
              "preLaunchTask": "Compile for Debug"
          }
      ]
  }
  </code></pre>
  
  <p>tasks.json</p>
  
  <pre><code>{
      "version": "2.0.0",
      "tasks": [
          {
              "label": "Compile for Debug",
              "type": "shell",
              "command": "g++",
              "args": [
                  "${file}",
                  "-o",
                  "${fileDirname}\\${fileBasenameNoExtension}",
                  "-g",
                  "-Wall",
                  "-Wextra",
                  "-Wl,--stack=1024000000"
              ]
          }
      ]
  }
  </code></pre>
  
  <p>When I press <code>F5</code>, the window looks like this:
  <a href="https://i.stack.imgur.com/xkonK.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>It seems that the debug session runs normally (the bar in the red box), but as you can see, the external console doesn't appear.</p>
  
  <p>P.S. My system is Windows 10 (x64), and the vscode is the latest.</p>