r/GoogleAppsScript • • Dec 07 '20

Question New Google App Script IDE

Looks like Google is rolling out a new app script IDE. Have you had it roll out to you yet?

https://developers.google.com/apps-script/releases

12 Upvotes

21 comments sorted by

View all comments

4

u/[deleted] Dec 08 '20

Well, I use VSCode for most of my projects, but that's very welcome for those small projects we build in the moment of need. By the way, anyone has a screenshot of how it looks?

1

u/[deleted] Dec 08 '20

TypeScript

May I ask how you debug with it? I'm new to clasp and I got it working with VS Code, but I don't see a way to run and debug.

2

u/[deleted] Dec 08 '20

That's the worst part to work on GAS. There's no actual way to debug it locally. You'll probably have to compile your code and then debug it on the apps script editor, but there's a few options depending on your use case.

Since you use clasp, you can leave it on watch mode to automatically push your changes and be a bit more dynamic, then use the GAS editor debugger.

If you just want to run the functions instead of opening it in the debugger, you can create a Google Cloud Platform project, then assign your apps script project to it and use clasp to run the functions and get the logs. I don't think this is too effective tho.

Lastly, if you're building project with a UI (like a modal menu, a sidebar or a web app), this github repo. It allows you to use gas server functions with live reload. I also made a fork that has typescript support (npm install @guilhermetod/gas-client).

If you'd ask me, I think its worth building a UI even if it's strictly for debugging purposes. Hit me up if you have any trouble setting this up.

1

u/[deleted] Dec 09 '20

Thanks a lot! Will try it later today!