title: Debug electron with vscode. runtimeExecutable
body: <p>I can't debug electron main process on windows with vscode. I've tried all possible <code>launch.json</code> configurations i could find, but <code>app</code> object is always <code>undefined</code>. Application works, i have problem only with debugging. It seems like my <code>runtimeExecutable</code> path is wrong. I've tried <a href="https://discuss.atom.io/t/debugging-electron-api-demo-using-visual-studio-code/40661/2" rel="nofollow noreferrer">https://discuss.atom.io/t/debugging-electron-api-demo-using-visual-studio-code/40661/2</a> I've took current configuration from docs <a href="https://github.com/electron/electron/blob/master/docs/tutorial/debugging-main-process-vscode.md" rel="nofollow noreferrer">https://github.com/electron/electron/blob/master/docs/tutorial/debugging-main-process-vscode.md</a></p>
  
  <p>my <code>launch.json</code></p>
  
  <pre><code>{
    "version": "0.2.0",
    "configurations": [
      { 
        "name": "Debug Main Process",
        "type": "node",
        "request": "launch",
        "program": "${workspaceRoot}/app/main.ts",
        "stopOnEntry": false,
        "args": ["."],  
        "cwd": "${workspaceRoot}",
        "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd",
        "outFiles": [  
          "${workspaceRoot}/dist/main.js"
        ],
        "env": { }, 
        "sourceMaps": true 
      }   
    ]
  } 
  </code></pre>
  
  <p>Thank you.
  <a href="https://i.stack.imgur.com/1bBMm.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1bBMm.jpg" alt="enter image description here"></a></p>