Add debugging info for settings-related code