What is the correct way of debugging connector rules

We have even tried log.error but we do not see any logs getting printed from our rule