Search code examples
debugginggoogle-apps-scriptgoogle-sheetsremote-debuggingclasp

How to locally debug Google apps script?


I use clasp with VS Code to locally developing of Google Apps Script. It's too hard to use default code debugger. So I'm looking for some way to debug code locally. Any suggestions how can I do this?


Solution

  • The short answer is there is no way to debug it as you would do in the editor.

    You can try to make workaround creating testing suites, or introducing various logs. But you cannot go step by step, inspecting variables as you would do normally.

    Reference