How to stop execution of Google Apps Script?

2020-08-14 16:06发布

问题:

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).

I just want to terminate the script.

回答1:

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