【发布时间】:2020-10-03 00:58:34
【问题描述】:
我在 Google Cloud Functions 中定义了一个 python 函数,我预计会失败,如下所示:
def write(event, context):
raise NotImplementedError()
现在我想查看这个函数的堆栈跟踪,以便调试我的函数。在documentation 中声明:
您的函数产生的未捕获异常将出现在 Stackdriver 错误报告中。
但是我似乎无法在任何地方找到此堆栈跟踪。我试过查看日志(它只是告诉我它崩溃了,没有任何痕迹),我试过查看 Stackdriver 错误报告页面,但在任何地方都找不到。我在哪里可以访问未捕获的错误日志?
Picture of GCF test response for reference.
感谢您的帮助!
【问题讨论】:
标签: python google-cloud-platform google-cloud-functions