title: Cannot Debug Electron JS application in VSCode
body: <p>I am trying to develop a sample application for learning electron JS.
  But unfortunately for me, the node debugger is not working for <a href="https://github.com/simonschiller/electron-demo" rel="nofollow noreferrer">this</a> particular project.</p>
  
  <p>But when I tried debugging <a href="https://github.com/electron/electron-quick-start" rel="nofollow noreferrer">electron-quick-start</a> app it works, we can see the call stack and all.</p>
  
  <p>lunch.json looks like this</p>
  
  <pre><code>{
    "version": "0.2.0",
    "configurations": [
      {
        "name": "Debug Main Process2",
        "type": "node",
        "request": "launch",
        "cwd": "${workspaceRoot}",
        "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
        "program": "${workspaceRoot}/main.js",
        "diagnosticLogging": true
      }
    ]
  }
  </code></pre>
  
  <p>I am running on Linux machine with Node v7.4.0.</p>
  
  <p>The error message I am getting on CALL STACK tab is
  <em><code>No Call stack available(vscode_backtrace:Internal error: TypeError: undefined is not a function)</code></em> </p>
  
  <p>Please help me to resolve this.</p>