Debugging a custom function in Google Apps Script
The debugger is probably not lying to you – if you launch that function in the debugger, it will have no parameters passed to it. No worries, though, you just need to make sure that you get values to use for debugging. Take a look at How can I test a trigger function in GAS?, … Read more