title: 'console.log' does not work in Webstorm in testing Electron application
body: <p>In a "normal" node application in Webstorm (Windows 7) I can use <code>console.log</code> to write to the console window of Webstorm.</p>
  
  <p>As soon as I use Electron to create a desktop app the console outputs are no longer shown in the Webstorm console window although I use the same node command 'C:\Program Files\nodejs\node.exe'. The main difference is that in the run configuration I have to use a node parameter 'C:\Users\Username\AppData\Roaming\npm\node_modules\electron-prebuilt\cli.js' to get the right Electron entry point.</p>
  
  <p>When I directly start the Electron application from a Windows console window then this console window shows all the outputs.</p>
  
  <p>The problem might be related to the fact that 'cli.js' spawns a child process:</p>
  
  <pre><code>#!/usr/bin/env node
  
  var electron = require('./')
  
  var proc = require('child_process')
  
  var child = proc.spawn(electron, process.argv.slice(2), {stdio: 'inherit'});
  child.on('close', function (code) {
    process.exit(code);
  })
  </code></pre>
  
  <p>But this one inherits <code>stdio</code> and therefore the outputs should go to the same channel. Or do I misunderstand something?</p>