如何停止执行Google Apps脚本? [英] How to stop execution of Google Apps Script?

查看:66
本文介绍了如何停止执行Google Apps脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在我的Apps脚本应用程序中使用 die() (在php中)之类的东西吗? 我用谷歌搜索了这个问题,最可接受的解决方案是抛出新的错误,但是在这种情况下,我不想收到有关脚本崩溃的通知(因为我不是唯一一个收到脚本崩溃的人).

Can I use something like die() (in php) at my Apps Script application? I googled this question, the most acceptable solution is to throw new Error, but in this case I don't want to receive notification about script crash (as I not the only one who receives them).

我只想终止脚本.

推荐答案

如果您在代码编辑器中,并且想要停止运行脚本,则可以单击Toast显示屏中的取消"链接.

If you are in the code editor, and want to stop a script from running, you can click the "cancel" link in the toast display.

或者您可以从代码编辑器中单击查看"->执行",然后终止脚本.

Or you can click "View" -> "Executions" from the code editor and then terminate the script.

您也可以通过以下链接直接转到处决处:

You can also go directly to your executions at the link:

https://script.google.com/home/executions

这篇关于如何停止执行Google Apps脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆