Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging Firebase Cloud Functions using Stackdriver

I am following this doc to try to debug my firebase cloud function: https://cloud.google.com/functions/docs/monitoring/debugging

First of all the The require line given in the doc was wrong so I changed it to this to make it compile:

require('@google-cloud/debug-agent').start();

Also after implementing this and deploying the functions using firebase deploy --only functions there is no code in stack drive debug view. Any idea how to make this work?

Thanks :)

like image 331
Rashid Khan Avatar asked Jul 28 '26 07:07

Rashid Khan


1 Answers

Currently, Cloud Functions for Firebase do not share their code with Stackdriver automatically. You'll need to source your code via Github, Bitbucket, or a Google Cloud Source Repository.

While debugging Cloud Functions for Firebase please refer to our documentation. We'll make sure to note any differences between the environments.

like image 57
James Daniels Avatar answered Jul 29 '26 22:07

James Daniels



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!