I'm supporting an existing Sitecore data provider that an outside consultant created. It's working for the most part, but there seems to be a bug when populating a field that I need to troubleshoot.
I'm trying to determine the best way to debug. Is a data provider executed when a content item is viewed/edited? Or when the content item is published? Or both?
Also, what is the best practice for debugging a data provider? Is it practical/possible to create unit tests?
This may or may not be relevant, but this particular data provider is built on top of the Spring Framework, which means a giant config file the Sitecore items and fields that this provider will populate.