title: How to debug electron applications with IntelliJ or WebStorm?
body: <p>I'm using IntelliJ as development tool and I wanted to know how to debug an <a href="http://electron.atom.io/">Electron</a> application?</p>
  
  <p>I'm aware there is a <a href="https://github.com/atom/electron/blob/master/docs/tutorial/debugging-main-process.md">standard way</a> to debug Electron applications, but this method is done outside of my IDE.</p>
  
  <p>I've tried to create a new "Node.js" "Run/Debug Configuration" using:</p>
  
  <ul>
  <li>Node interpreter: <code>&lt;path to node&gt;</code></li>
  <li>Working directory: <code>&lt;path to my application root folder&gt;</code></li>
  <li>JavaScript file: <code>node_modules/.bin/electron</code></li>
  <li>Application parameters: <code>.</code></li>
  </ul>
  
  <p>With this settings, my application starts, but if I put a breakpoint in my <code>main.js</code> the application never stops on the breakpoint (= debugging doesn't work).</p>