google-apps-script - 在 Google 表单上提交时,如何在调试模式下运行 Google App 脚本?
问题描述
我运行与从 Google 表单提交相关的 GAS,请让我知道如何在调试模式下执行此操作。我想看各种数据,比如从表单中接收到什么样的内容,每个Logger都写起来很麻烦。
解决方案
您可以使用 StackDriver 控制台永久记录所有消息。
function onSubmit(e) {
console.log(e);
// your code here.
}
在 Script Editor 中,转到 View > Stackdriver Logging 以查看记录的消息。
推荐阅读
- elasticsearch - 将弹性搜索查询 + 聚合转换为嵌套语法
- android - Android 如何使用来自其他 XML 文件的控件
- java - Eclipse:无法创建 SWT 浏览器小部件
- c# - 在 c:\bin\roslyn 生成的 Roslyn bin 文件夹
- ip-address - 如何表示未指定的 IPv4 地址?
- jmeter - 使用Jmeter在生产环境中进行性能测试
- reactjs - 出现错误:在可拖动中添加 isDragDisabled 标志时在可拖动中找到拖动句柄元素
- python - 如何与无法通过 google-chrome-devtools 中的 css/xpath 检查的元素进行交互
- javascript - 如何使用 aiohttp 获取带有 javascript 的网页?
- ios - CoreData 的问题