# How to debug Security Rules
- Look for
[GENS]
message, copy the path to the simulator (Database -> Rules) - Double-check if the path is correct (!) - is it pointing to parent or child? Add child path if necessary
- Serialize payload with
JSON.stringify(temp1, null, " ")
and copy to simulator - Set user in simulator to the value of
this.$models.user.defaultUserId
- Check why permission was denied
- Check if check
database.rules.json
makes sense (and was correctly compiled) - Check if check
database.rules.bolt
is correct
Also, see Tips.