检查执行是否在调试模式下运行 [英] Check if the execution is running in debug mode
本文介绍了检查执行是否在调试模式下运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以检查Google Apps脚本是否以调试模式运行?
Is there a way to check if Google Apps Script is running in debug mode ?
例如,我有一个脚本,我使用 prompt
,但是在调试模式下,我想为这些提示设置预定义的值.
For an example, I have a script for which I use prompt
but, in debug mode, I want to set predefined values for these prompt.
推荐答案
尝试使用debugMyFunc()调试myfunc();
Try debugging myfunc() with debugMyFunc();
function debugMyFunc() {
myfunc('debug');
}
function myfunc(mode) {
var mode=mode||'run';
}
这篇关于检查执行是否在调试模式下运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文