FANDOM


This simple function will log the current values of all your Widget preferences to the debug window. This can be useful for debugging, especially when somebody else is testing your Widget remotely and sending you the output from the debug window because it quickly tells you exactly how they have configured your Widget.


function logPreferences() {
  print("Current Preference Values:");
  for (var p in preferences) print(p+": "+preferences[p].value)
}