title: How to attach to express process using VS Code?
body: <p>I'm running an express API using gulp-nodemon and I want to debug the received requests using VS Code.</p>
  
  <p>My problem is: I can't attach to a running process. In my <code>launch.json</code> configuration, I don't want to start-attach, I would like to just attach to a running instance (which is managed by gulp).</p>
  
  <p>My VS Code <code>launch.json</code>:</p>
  
  <pre><code>{
      "version": "0.2.0",
      "configurations": [
          {
              "type": "node",
              "request": "attach",
              "name": "Attach to Process",
              "port": 5858 // tried to use 3000 (express port), but failed too
          }
      ]
  }
  </code></pre>
  
  <p>Using port 3000 it fails immediately without showing anything. Using port 5858 it fails with the message:</p>
  
  <blockquote>
    <p>Cannot connect to runtime process (timeout after 10000 ms).</p>
  </blockquote>