Printing to the console in Google Apps Script?

前端 未结 7 819
迷失自我
迷失自我 2021-01-31 01:13

I am very new to programming (have taken some of the JS courses on Codecademy). I am trying to create a simple script to determine, if given a spreadsheet with results from a po

7条回答
  •  盖世英雄少女心
    2021-01-31 01:43

    Just to build on vinnief's hacky solution above, I use MsgBox like this:

    Browser.msgBox('BorderoToMatriz', Browser.Buttons.OK_CANCEL);
    

    and it acts kinda like a break point, stops the script and outputs whatever string you need to a pop-up box. I find especially in Sheets, where I have trouble with Logger.log, this provides an adequate workaround most times.

提交回复
热议问题