Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check if the execution is running in debug mode

Is there a way to check if Google Apps Script is running in debug mode ?

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.

like image 743
coutier eric Avatar asked Nov 22 '25 05:11

coutier eric


1 Answers

Try debugging myfunc() with debugMyFunc();

function debugMyFunc() {
  myfunc('debug');
}

function myfunc(mode) {
  var mode=mode||'run';
}
like image 172
Cooper Avatar answered Nov 23 '25 19:11

Cooper



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!