title: `Connection refused` in WebStorm NPM debug configuration
body: <p>Bearing in mind that I have only the loosest understanding of what a debugger is <em>really</em> doing, I need help setting up the WebStorm npm debug configuration for an <code>express.js</code> application. </p>
  
  <p>Here's me so far-- I click debug with my settings as I think they should be (below):</p>
  
  <pre><code>/Users/me/.nvm/versions/node/v4.4.1/bin/node --debug=8090     
  /Users/me/.nvm/versions/node/v4.4.1/lib/node_modules/npm/bin/npm-cli.js run-script start
  
  To debug "start" script, make sure $NODE_DEBUG_OPTION string is specified as the first argument for node command you'd like to debug.
  For example:
   { "start": "node $NODE_DEBUG_OPTION server.js" }
  Debugger listening on port 8090
  ...
  It has begun. Port: 3000
  </code></pre>
  
  <p>So at this point, the application has started up and responds to my <code>POST</code> to <code>localhost:3000</code>, but does not break on the breakpoint I set. </p>
  
  <p>Looking in the Debugger>Variables pane, I see <code>Connecting to localhost:57617</code>, then a tooltip pops up saying "Connection refused" and the pane says <code>Frame is not available</code>.</p>
  
  <p>I don't understand where that port number 57617 is coming from. It varies, though not according to any pattern I've yet discovered, except inasmuch as it is always different than the one I set in the <code>--debug=X</code> or <code>--debug-brk=X</code> node option. </p>