June 2018
Intermediate to advanced
388 pages
9h 1m
English
There are a few different methods of troubleshooting a widget, depending on the information you're looking for. In the server script, we can use gs.log() or gs.info() to log data from the server. In the client controller and the body HTML template, we can use console.log() or console.warn(), and use the browser's console to debug certain issues.
Technically we can use alert(), but generally, logging in the console is better.
The Widget Context Menu is also helpful for troubleshooting. In particular, the last two items can be incredibly helpful:

Let's briefly go over what they each do:
Read now
Unlock full access