We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We need to add a function to Debug to the playground. The Button is already there.
We can use the simple assembler debugger here 0xPolygonMiden/miden-vm#693.
However, we need to wrap it into a function to call something like
pub fn debug_program(masm_code: &str, inputs_frontend: &str, command: &str) -> Vec<u64> { ... }
Where command is !next, !play, !prev, !print.
!next
!play
!prev
!print
We will not be able to support all commands at the beginning.
We can simply call execute_iter() in here https://github.com/0xPolygonMiden/miden-vm/blob/360b5b080b79b9d66e912e2eb286a5237a261eb2/processor/src/lib.rs#L118-L138
execute_iter()
Then we have a VmStateIterator object on which we can call various debugging commands, see https://github.com/0xPolygonMiden/miden-vm/blob/360b5b080b79b9d66e912e2eb286a5237a261eb2/processor/src/debug.rs#L128
VmStateIterator
The challenging question will be how the VmStateIterator can be stored in the state of the browser.
The text was updated successfully, but these errors were encountered:
closed by #79
Sorry, something went wrong.
No branches or pull requests
We need to add a function to Debug to the playground. The Button is already there.
We can use the simple assembler debugger here 0xPolygonMiden/miden-vm#693.
However, we need to wrap it into a function to call something like
Where command is
!next
,!play
,!prev
,!print
.We will not be able to support all commands at the beginning.
We can simply call
execute_iter()
in herehttps://github.com/0xPolygonMiden/miden-vm/blob/360b5b080b79b9d66e912e2eb286a5237a261eb2/processor/src/lib.rs#L118-L138
Then we have a
VmStateIterator
object on which we can call various debugging commands, see https://github.com/0xPolygonMiden/miden-vm/blob/360b5b080b79b9d66e912e2eb286a5237a261eb2/processor/src/debug.rs#L128The challenging question will be how the
VmStateIterator
can be stored in the state of the browser.The text was updated successfully, but these errors were encountered: