title: How to debug Azure Functions Core Tools with VS Code debugger?
body: <p>I'm locally developing a Node.js app with  Azure Functions Core Tools. I would like to debug it with help of VS Code debugger, but I get this error: </p>
  
  <pre><code>Cannot connect to runtime process, timeout after 10000 ms - (reason: 
  Cannot connect to the target: connect ECONNREFUSED 127.0.0.1:5858)
  </code></pre>
  
  <p>For debug option, I've chosen "Attach to JavaScript Functions". This option was there by default and I haven't created it. </p>
  
  <p>Here is content of my launch.json:</p>
  
  <pre><code>{
    "version": "0.2.0",
    "configurations": [
  {
    "name": "Attach to JavaScript Functions",
    "type": "node",
    "request": "attach",
    "port": 5858,
    "preLaunchTask": "runFunctionsHost"
  }
  ]} 
  </code></pre>
  
  <p>How can I fix this issue and make the debugging to work?</p>