3

我正在关注此文档以尝试调试我的 firebase 云功能:https ://cloud.google.com/functions/docs/monitoring/debugging

首先,文档中给出的要求行是错误的,所以我将其更改为此以使其编译:

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

同样在实现此功能并使用firebase deploy --only functions堆栈驱动调试视图中没有代码部署功能之后。知道如何进行这项工作吗?

谢谢 :)

4

1 回答 1

3

目前,Cloud Functions for Firebase 不会自动与 Stackdriver 共享其代码。您需要通过 Github、Bitbucket 或 Google Cloud Source Repository 获取代码。

为 Firebase 调试 Cloud Functions 时,请参阅我们的文档。我们将确保注意环境之间的任何差异。

于 2017-03-13T21:06:00.743 回答