Debugging a custom function in Google Apps Script

后端 未结 2 956
余生分开走
余生分开走 2020-12-05 00:10

I am trying to create my first custom function for a Google Spreadsheet in Apps Script and I am having a hard time using the debugger.

I am working on the custom fun

2条回答
  •  萌比男神i
    2020-12-05 00:35

    You can use this hack to see the structure of the arguments being sent into the custom function:

    function TEST(input) {
      return (JSON.stringify(input));
    }
    

    The results will show up in your sheet like this:

提交回复
热议问题