Today Firebase released its brand new product Cloud Functions for Firebase and I just created a hello world function and deploy it on my existing firebase project.
I
For vscode users debugging HTTP functions (webhooks, etc)...
The google cloud emulator (firebase serve --only functions
) launches a separate process to run your functions. You can attach to this process with vscode, but since the emulator only creates this process after the first function is called, it's not straightforward.
app.get("/processid", function(request, response) {
response.send(`${process.pid}`);
});
firebase serve --only functions
http:///processid
endpoint. This will create the process and return the processIDThere's probably a nicer way to glue all this together.