title: Unable to start debugger for c++ in visual studio code
body: <p>I just switch from Netbeans to visual studio code, and i cannot debug c++, the error was <code>Unable to start debugging. Launch options string provided by the project system is invalid. Unable to determine path...</code>.
  I tried to follow the c/c++ debug guide from visual studio code website that i searched from google, but it failed to run the application, but i can compile c++ from <code>Ctrl + Shift + B</code> so my task.json file is correct, so here are my task.json file and launch.json file.</p>
  
  <pre><code>{
      //Task.json
      // See https://go.microsoft.com/fwlink/?LinkId=733558
      // for the documentation about the tasks.json format
      "version": "0.1.0",
      "command": "g++",
      "isShellCommand": true,
      "args": ["-pipe", "-std=c++14", "${fileBasename}", "-lm"],
      "showOutput": "always"
  }
  </code></pre>
  
  <hr>
  
  <pre><code>//Launch.json
  "version": "0.2.0",
  "configurations": [
      {
          "name": "C++ Launch",
          "type": "cppdbg",
          "request": "launch",
          "program": "${workspaceRoot}/a.out",
          "args": [],
          "stopAtEntry": false,
          "cwd": "${workspaceRoot}",
          "environment": [],
          "externalConsole": true,
          "linux": {
              "MIMode": "gdb",
              "setupCommands": [
                  {
                      "description": "Enable pretty-printing for gdb",
                      "text": "-enable-pretty-printing",
                      "ignoreFailures": true
                  }
              ]
          },
          "osx": {
              "MIMode": "lldb"
          },
          "windows": {
              "MIMode": "gdb",
              "setupCommands": [
                  {
                      "description": "Enable pretty-printing for gdb",
                      "text": "-enable-pretty-printing",
                      "ignoreFailures": true
                  }
              ]
          }
      },
  </code></pre>