brucemcpherson / desktopliberation

hosting for desktop liberation google plus community
30 stars 1 forks source link

Resuscitating the Apps Script execution transcript – JavaScript Proxy and Reflect to the rescue #103

Open brucemcpherson opened 3 years ago

brucemcpherson commented 3 years ago

If you’ve been using Apps Script for a while, since back when it was running on the Rhino JavaScript emulator; see (What JavaScript engine is Apps Script running on?), you’ll remember the Execution Transcript. This was a really useful log of every call made to built-in Apps Script services, along with the arguments passed and the result. It was a great tool for debugging.

With V8, that disappeared, so I wondered if there might be a way to intercept calls to Apps Script services to bring back what we lost with the disappearance of the Execution Transcript. And, of course we can! With a minimum of coding, we can fiddle around with any Gas Service call. This article will show you how. https://ramblings.mcpher.com/apps-script/apps-script-v8/proxy/