Cloud Functions local debugging

preview_player
Показать описание
Debugging is often easier on a local machine than in the cloud. Follow along and learn how to debug Google Cloud Functions on your laptop, with Christoph Stanger and Martin Omander as your guides. See how to run a small part of Google Cloud on your machine, simulate cloud events, access a database, impersonate service accounts, and enable hot reload.

Chapters:
0:00 - Intro
0:54 - Running part of Google Cloud on your laptop
2:51 - Executing the function locally
4:12 - Impersonating a service account
6:12 - Calling the Vision API
7:12 - Adding a breakpoint
8:28 - Hot reload
8:46 - Blog post with more details
9:43 - Wrap-up

Links:

#ServerlessExpeditions​
Рекомендации по теме
Комментарии
Автор

Exactly what I was looking for. This is straight fw as compared to other video which try to run emulators. Great learning resource (at least for me)

atifuhasan
Автор

I waited for this for 6 years now, thanks!

satheeshwaranJ
Автор

Helpful video. Question: What if you wanted to do this for Firebase Callable Functions? There is no way to directly cURL those, so how would you invoke the local Cloud Function for those? Thanks

Mustafa-jyel
Автор

I would like to see debugging Firebase Storage with local files beeing „uploaded“ on local instance in the Emulator :).

Thx ❤

rebarius
Автор

Nice for single function when you have real products it is useless when you use auth and tasks it gets so complicated

dzivojelic
Автор

I appreciate your video – it's been incredibly insightful. Yet, while attempting to implement the concepts in Python, I've been having dificulties regarding authentication. I've managed to execute the function, but it seems that my impersonation of my service account isn't seamlessly integrated with the local function, leading to a persistent error: "Unable to acquire impersonated credentials."

Could you consider creating a video in the near future that delves into the intricacies of authenticating with Python? In the interim, if you could point me to any relevant documentation, it would be greatly appreciated. Thanks for your assistance.

josueperla