Since Logger.log() doesn't help in printing out the values at the line you need to debug. You can go with alert() . Yes it's a bit annoying but works the same when working with webapp
Logger.log()
alert()