-
Notifications
You must be signed in to change notification settings - Fork 988
debug() statement in firestore rules does not write out to firestore-debug.log #8407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This issue does not seem to follow the issue template. Make sure you provide all the required information. |
Hey @Turburlar, thanks for the detailed report! The
Let me know if I may be wrong here, but did you mean to first get the data in
After updating the rules, could you try running your app again to see if Also, using the code snippet you provided, it doesn’t seem like the |
@aalej I will consider the example you gave. But my goal of using the debug() function is to print out the path inside the debug function to troubleshoot. Alternatively, I could just try printing out the value of inviteId. |
Thanks for clarifying your use case @Turburlar. Since permission statements expect a boolean value, if you're trying to print out the path, you could try something similar to:
This will write an output to the
Could you give this a try? Let me know in case this is not what you're looking for. |
Hey @Turburlar. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 3 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
Since there haven't been any recent updates here, I am going to close this issue. @Turburlar if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this. |
[REQUIRED] Environment info
Firebase CLI 13.31.2
Running on Flutter web in Chrome
cloud_firestore: ^5.6.6
Framework • revision c236373904 (3 weeks ago) • 2025-03-13 16:17:06 -0400
Engine • revision 18b71d647a
Tools • Dart 3.7.2 • DevTools 2.42.3
[REQUIRED] Test case
To reproduce, run the following flutter app main...
With the following rules...
In this case the expected behaviour is that the path object would be written out in the firestore-debug.log.
The text was updated successfully, but these errors were encountered: