Skip to content
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

Improved debugger stack trace #7249

Open
johanfylling opened this issue Jan 7, 2025 · 0 comments
Open

Improved debugger stack trace #7249

johanfylling opened this issue Jan 7, 2025 · 0 comments

Comments

@johanfylling
Copy link
Contributor

debug.Session.StackTrace() currently returns a list of frames representing the complete set of query trace events from start of eval up to the current, paused debug event. This is both cumbersome to sift through and unexpected for the end user. A trace event doesn't correlate to what a user might expect would represent a stack "frame" in Rego. Closer to user expectations would be if each frame in the returned stack instead corresponded to the sequence of sub-queries (each with it's own, unique query-id) leading up to the current frame. Preceding sub-queries that has been exited (sequentially executed) should not be included in the stack trace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant