Some guidance here
In essence, add logInfo lines to Rules to record progress and values of interest, and find out how to view the logs