Testing a Gadget in a Browser
Testing a gadget in the Chrome browser
1. Open the Developer Tools (Press F12).
2. In Sources tab, from the left hand side menu, expand wmbcgadgets > script.
3. Double-click on gadget-framework.js. This file contains all your gadget code.
4. Search for your controller function (Use Ctrl+F).
5. Set breakpoints accordingly