title: Breakpoints in TypeScript with mocha and VSCODE
body: <p>I'm trying to get <code>vscode</code> to launch mocha and stop on breakpoints. When I run the tests manually I use the following command:</p>
  
  <pre><code>$ mocha -r node_modules/reflect-metadata/Reflect.js --recursive
  </code></pre>
  
  <p>I can also use the following command:</p>
  
  <pre><code>mocha -r node_modules/reflect-metadata/Reflect.js --recursive --debug-brk
  </code></pre>
  
  <p>And the following debug config:</p>
  
  <pre><code>{
      "version": "0.2.0",
      "configurations": [
          {
              "name": "Attach to Process",
              "type": "node",
              "request": "attach",
              "processId": "${command.PickProcess}",
              "port": 5858,
              "sourceMaps": true,
              "outFiles": [
                  "src/**/**.js",
                  "test/**/**.test.js"
              ]
          }
      ]
  }
  </code></pre>
  
  <p>This allows me to set breakpoints in the <code>.js</code> files and see the original TypeScript source. But I can't set a break point directly in the TypeScript code.</p>
  
  <p>My second problem is that I would like to simply press debug in the VSCode UI and trigger mocha in debug mode automatically and again hit breakpoints directly in the .ts files.</p>
  
  <p>Is this possible?</p>