1

I was creating a simple web application using HtmlService in Google Apps script. I want to debug the JavaScript code(Client side) in the HTML file. Is there any way ?

I know the process for server side function.

Thank You In Advance !!

0

1 Answer 1

-1

Use your web browser's built-in utilities to debug client-side Javascript. In Google Chrome, you can open the Developer Tools by pressing Ctrl-Shift-I or opening the menu and selecting More tools --> Developer tools.

Sign up to request clarification or add additional context in comments.

4 Comments

This did not work for me. I can open dev tools, but I don't see anything that looks like my client-side apps script listed there. If I add 'debugger;' to my code, it stops in userCodeAppPanel, but again, it looks nothing like my code (not even a compressed/obfuscated version of it).
Apparently this approach will not work. See stackoverflow.com/questions/46520959/…
This answer is 5 years old and I'm sure much has changed in Chrome since then.
How can I place a breakpoint in the .gs code, when I invoke the app-script functions via javascript using google.script.run

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.