How to debug Google Apps Script (aka where does Logger.log log to?)

前端 未结 12 1846
时光说笑
时光说笑 2020-12-12 11:25

In Google Sheets, you can add some scripting functionality. I\'m adding something for the onEdit event, but I can\'t tell if it\'s working. As far as I can tell

12条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-12 12:07

    I've gone through these posts and somehow ended up finding a simple answer, which I'm posting here for those how want short and sweet solutions:

    1. Use console.log("Hello World") in your script.
    2. Go to https://script.google.com/home/my and select your add-on.
    3. Click on the ellipsis menu on Project Details, select Executions.

    1. Click on the header of the latest execution and read the log.

提交回复
热议问题