# Debugging Rules
Sometimes rules do not return records that they "should." Here is one possible approach to debugging a rule.
By clicking on the "pencil" icon next to the rule, you can enter edit mode for the rule.
You will see the first edit screen:
Click on the "Build Query" button to go to the next screen, where the text editor displays query specifics of the rule can be seen
You can then click on the "Review" button to execute the rule and check the results locally.
Try incrementally modifying the JQL and/or modifying a specially-chosen record in Jira.
Aha! there is your record: