After some effort I have now my Firestore emulator setup and my first tests written using mocha! Great.
I understand it is not possible to debug security rules step by step but is there a way to log information or state to the console, directly from the security rules?