When you use a custom function as a formula, it can be evaluated and re-evaluated at many times. Therefore, it is not appropriate to fill up the Logging output or the Execution Transcript with this. If you want to debug, you must run (or debug) the script manually from the script editor.
Take an example, where you have two custom functions - f1()
and f2()
And say, in cell A1
, you enter the formula =f1()
and in A2
, you enter =f2(A1)
.
In such a case, both the cells will be re-evaluated. So what should the logger output show ?