[feature] Rego debugger

Open
#150 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
rust
Domain
compilers

Research direction

Start by reviewing the linked early implementation in the regorus repository and the existing Rego evaluation flow. Determine how debugger controls such as stepping and pause points should fit that flow. Done means a Rego policy can be stepped through during evaluation with useful inspection of its progress.

Written by the indexing model from the issue text.

Description

feature

According to Open Policy Agent/ecosystem/debugging_rego "Debugging Rego policies can be tricky". There is no way to step through the evaluation of a rego policy.

We need to implement a debugger for Rego policies. Since Rego does not have mutable variables, the debugger implementation ought to be much simpler than for a language with mutable variables.

Idea/Early implementation here: https://github.com/microsoft/regorus/compare/main...anakrish:regorus:debugger

Dominant language
Rust
Stars
375
Forks
81
Avg merge
1d 11h
Merged PRs (30d)
78

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/regorus

All issues in microsoft/regorus

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.