0xPolygonMiden / examples

Examples of using Polygon Miden
MIT License
18 stars 18 forks source link

feat: adds debugging #79

Closed Dominik1999 closed 1 year ago

Dominik1999 commented 1 year ago

closes #68

This PR enables the frontend to run the Rust program debug_program, which executes miden_vm::execute_iter.

https://user-images.githubusercontent.com/35031754/225068792-fbc6880d-ac29-425c-93ea-0935112ac684.mov

OK, now The playground uses the same debugging methods as the Miden CLI, see here.

For now, I have only implemented 5 methods in the fronend

    PlayAll,
    Play(usize),
    RewindAll,
    Rewind(usize),
    PrintState,

but all methods are exposed in the backend.

We should refactor the lib.rs and CodingEnvironment.tsx, both grow way too big, but that might be for the next PR.