我在 Google Cloud Functions 中定义了一个 python 函数,我预计它会失败,如下所示:
def write(event, context):
raise NotImplementedError()
现在我想查看此函数的堆栈跟踪,以便调试我的函数。在 documentation它指出:
Uncaught exceptions produced by your function will appear in Stackdriver Error Reporting.
但是我似乎无法在任何地方找到这个堆栈跟踪。我试过查看日志(它只是告诉我它在没有任何痕迹的情况下崩溃了)并且我试过查看 Stackdriver 错误报告页面我在任何地方都找不到它。我在哪里可以访问 Uncaught Error 日志?
Picture of GCF test response for reference.
谢谢你的帮助!
最佳答案
这是 Python 运行时的一个已知问题,正在解决:https://issuetracker.google.com/issues/155215191
关于python - 如何在 Google Cloud Functions 中查看未捕获异常的堆栈跟踪?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62357315/