title: Debugging Express Server on Firebase Cloud Functions
body: <p>I'm run an Express Server on Firebase Cloud Functions. </p>
  
  <p>For example:</p>
  
  <pre><code>const functions = require("firebase-functions")
  const express = require("express")
  
  /* Express */
  const app1 = express()
  app1.get("*", (request, response) =&gt; {
    response.send("Hello from Express on Firebase!")
  })
  
  exports.api = functions.https.onRequest(app1)
  
  </code></pre>
  
  <p>I'm using VScode as my code editior. I've tried everything but not sure how to debug my cloud function.</p>
  
  <p>Here is what my VScode launch.json looks like:</p>
  
  <pre><code>{
    "version": "0.2.0",
    "configurations": [
      {
        "type": "node",
        "request": "attach",
        "name": "Attach",
        "port": 9229,
        "restart": true,
        "skipFiles": ["&lt;node_internals&gt;/**"]
      }
    ]
  }
  </code></pre>
  
  <p>Any ideas on how to debug these function locally inside VScode?</p>