首页 > 解决方案 > 在 Google 表单上提交时,如何在调试模式下运行 Google App 脚本?

问题描述

我运行与从 Google 表单提交相关的 GAS,请让我知道如何在调试模式下执行此操作。我想看各种数据,比如从表单中接收到什么样的内容,每个Logger都写起来很麻烦。

标签: google-apps-scriptgoogle-forms

解决方案


您可以使用 StackDriver 控制台永久记录所有消息。

function onSubmit(e) {
  console.log(e);
  // your code here.
}

在 Script Editor 中,转到 View > Stackdriver Logging 以查看记录的消息。


推荐阅读