title: How to remotely debug Node.js app with source maps (using WebStorm)
body: <p>I struggling to debug remotely piece of node.js code that got translated from ES6 with BabelJs. Here's the situation: </p>
  
  <p>I have a project with ES6 source file <code>server\app.js</code> that gets translated to ES5 and put to <code>dist\server\app.js</code> along with <code>dist\server\app.js.map</code>. I can set a breakpoint in original <code>server\app.js</code> and then debug locally file <code>dist\server\app.js</code> to hit that breakpoint - source map works perfectly fine.</p>
  
  <p>Now I have put my entire <code>dist</code> folder to remote PC where I start my app with <code>node --debug-brk dist\server\app.js</code> command. Connecting to that process with remote debugger from WebStorm makes the application run, but the breakpoint is not hit.</p>
  
  <p>Surprisingly, if I run <code>node --debug-brk dist\server\app.js</code> from terminal on the same host where my WebStorm is installed, then remote debugger connecting to localhost:5858 is able to trigger that breakpoint.</p>
  
  <p>Is there anything that I am missing in order to hit that breakpoint when debugging remotely?</p>
  
  <p>Thanks in advance for any suggestions.</p>
  
  <pre><code>Webstorm: 2016.1
  Node: 4.4.2 (both local and remote machine)
  </code></pre>