How best to debug issues in rules

What would be the best way to debug issues in Rules? We are dealing with a long hierarchy of rules and it is bit daunting to locate issues. These are called from a script task. Is there a way to write to logs from within Rules?

OriginalPostID-141855

OriginalPostID-141855

  Discussion posts and replies are publicly visible