title: Debugging node.js ES6 code with VSCode
body: <p>I followed this manual:
  <a href="https://blogs.msdn.microsoft.com/vscode/2015/07/06/visual-studio-code-es6/" rel="nofollow">https://blogs.msdn.microsoft.com/vscode/2015/07/06/visual-studio-code-es6/</a></p>
  
  <p>And added this to my <code>jsconfig.json</code> file:</p>
  
  <pre><code>{
      // See https://go.microsoft.com/fwlink/?LinkId=759670
      // for the documentation about the jsconfig.json format
      "compilerOptions": {
          "target": "es6",
          "module": "commonjs",
          "allowSyntheticDefaultImports": true
      },
      "files": [
          "app.js"
      ]
  }
  </code></pre>
  
  <p>When adding to app.js:</p>
  
  <pre><code>let myVar;
  </code></pre>
  
  <p>I'm getting a syntax error:</p>
  
  <pre><code>let myVar;
      ^^^^^
  </code></pre>
  
  <p>If I change <code>let</code> to <code>var</code> - it's all good.
  What is wrong?
  I believe it's related to the way VSCode runs node:</p>
  
  <pre><code>node --debug-brk=30696 --nolazy bin/www 
  debugger listening on port 30696
  </code></pre>