Cloud Functions Local emulator
Cloud Functions ローカル エミュレータ  |  Cloud Functions のドキュメント  |  Google Cloud
$ functions ...
deploy, call, config,, describe, reset, logs read
logs readは、default 20 lines
イベント(pubsubや cloud storage) にも対応できる
To enable automatic unmarshalling, set the function signature type to event using a command-line flag or an environment variable.
GoogleCloudPlatform/functions-framework-nodejs: FaaS (Function as a service) framework for writing portable Node.js functions
--signature-type=event でよい?
#debugging #Node.js
Firebaseを使ってるときは、firebase emulatorsを使うのがよい。
firebase functions:shell で、イベントベースの関数もemulator実行できる。