Home > Back-end >  Google Apps Script Editor - is error elaboration possible?
Google Apps Script Editor - is error elaboration possible?

Time:11-11

TL;DR

How to get elaborated information about javascript errors in Google Apps Script editor itself, BEFORE executing the script

Clarification

This is NOT a question about a specific code, but about GAS editor's behavior/functionallity

Background

When writing a line of code in GAS, the editor clearly recognizes the problems and underlines the relevant places in red zigzagged underline / 3 grey dots.

enter image description here

Questions

  1. Is there a way to see elaboration about what the problems actually are in the editor itself BEFORE executing the code and tracking them with console.log / trycatch / the Executions tab?

Same example, now in VSC:

js expectation 1 js expectation 2 js expectation 3 issues fixed

  1. Is it possible to get even more elaboration (from ts for example), like that:

async issue onEdit1 issue { issue

CodePudding user response:

You can check the errors before running the script by using Windows key F8 / option F8 that will trigger the Go to next problem.

You can also file a Feature Request or an Issue on Google's issue tracker.

This is the template for the Feature Request:

  • Related