distributev / gmail-wordpress-mailchimp-integration

Build a Gmail contextual gadget similar (but much simpler) to - https://solve360.com/new/solve360-and-gmail-hook-up/
MIT License
0 stars 0 forks source link

How to debug Gadget Helper.gs? #15

Open distributev opened 8 years ago

distributev commented 8 years ago

I find it difficult to trace what is happening there. There are few Logger.log statements but the View Logs screen it's always empty no matter what I do in Gmail. I don't even know if this code is executed or not.

The only thing I manage to do was using the Chrome developer tools console and saw some things there.

How I can debug Gadget Helper.gs live?

mdkass commented 8 years ago

I'm going to report logs to a Google spreadsheet.

mdkass commented 8 years ago

I've added a new function called addLog and there are 2 examples how to use it in the saveEvent function. You can see the log info in this spreadsheet: https://docs.google.com/spreadsheets/d/1_xUj5zizYTjrmP5xv2ZjMIV2C54Wjmd6uPcZMN4cOIY/edit?usp=sharing

distributev commented 8 years ago

This is good.

mdkass commented 8 years ago

just a reminder: Please don't forget to deploy the web app after each edit.

distributev commented 8 years ago

Good catch. I was not doing that but it was looking as my chances take effect.