Sometimes, before adding hooks in your Magento instance, you may want to test them (See this guide for more information on hooks in Magento).
You can do so by adding a debug to the code before the widget is triggered.
Reload the page and add the code in the console:
It will then show up in your widget set.