title: Can't debug current typescript file in VS Code because corresponding JavaScript cannot be found
body: <p>I am using Visual Studio Code version 1.17, and my objective is to debug the <em>current</em> typescript file. I have a build task running, so I always have a corresponding javascript file like this:</p>
  
  <pre><code>src/folder1/folder2/main.ts
  src/folder1/folder2/main.js
  </code></pre>
  
  <p>I have tried with the following launch.json configuration: </p>
  
  <pre><code>{
    "type": "node",
    "request": "launch",
    "name": "Current File",
    "program": "${file}",
    "console": "integratedTerminal",
    "outFiles": [
      "${workspaceFolder}/${fileDirname}**/*.js"
    ]
  }
  </code></pre>
  
  <p>But I get the error: <code>Cannot launch program '--full-path-to-project--/src/folder1/folder2/main.ts' because corresponding JavaScript cannot be found.</code></p>
  
  <p>But the corresponding JavaScript file exists!</p>
  
  <p>tsconfig.json: </p>
  
  <pre><code>{
  "compileOnSave": true,
  "compilerOptions": {
      "target": "es6",
      "lib": [
          "es2017",
          "dom"
      ],
      "module": "commonjs",
      "watch": true,
      "moduleResolution": "node",
      "sourceMap": true
      // "types": []
  },
  "include": [
      "src",
      "test"
  ],
  "exclude": [
      "node_modules",
      "typings"
  ]}
  </code></pre>