I have a simple project that does some general calculation of arrays and returns the result in a grid. I needed a shortcut to scan the array for maximum value and tried to use this:
var max = Math.max.bind( Math.max );
var vector_max = Function.apply.bind( max, null );
Now this works great when I am not debugging. But, if I wrap a test function around any statement, for example, say:
function tester() {
var r = 0;
return r;
}
..., set a breakpoint at any point of this function and click "Debug", I get an error message:
"Typeerror: This operation is not allowed. (line XXX, file xxx)"
This happens even in a completely new script attached to an empty sheet. Of course, Google has no documentation on the script debugger and no links to any restrictions, so I'm completely in the dark.
Any ideas?