Cloud Functions local debugging


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:
How to send cloud events to Cloud Functions → https://goo.gle/461SPx6
Blog post → https://goo.gle/3PthTWC
Typescript code → https://goo.gle/3t6mua0

Check out more episodes of Serverless Expeditions → https://goo.gle/ServerlessExpeditions
Subscribe to Google Cloud Tech → https://goo.gle/GoogleCloudTech

#ServerlessExpeditions​


Duration: 00:10:17
Publisher: Google Cloud
You can watch this video also at the source.