# 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.jsonmakes sense (and was correctly compiled) - Check if check 
database.rules.boltis correct 
Also, see Tips.