I am working on a Google Sheets Editor Add-On that is currently bound to a spreadsheet. I like to use the Chrome developer tools, including the debugger. I have noticed that sometimes it is easy to view my code and step through in the debugger. Other times, it is obfuscated and not debuggable.
Is there any way to prevent obfuscation?
Typically the way I get to my source code is:
- Open the sidebar in the bound spreadsheet through the Chrome Extensions menu.
- Open Developer Tools (Control-Shift I).
- Click on a sidebar button to run my code.
- See a link to my code in a console.log() message or an error.
- Click on the link.
Clicking on the link takes me to the Sources tab, where I see either my source code or the obfuscated version.
Thank you.
Ellen