Closed hackaugusto closed 1 week ago
We already debug mode in CLI (see here). Or did you mean something else?
Yeah, I was thinking of the run
command and getting the debug.stack
working for it.
Ah - I missed that this was specifically for the run
command. Yes, I think adding something like --debug
is a good idea (would be similar to --tracing
flag that we already have).
Would this --debug
argument be passed into the command like this after building?
./target/optimized/miden run -a miden/examples/nprime/nprime.masm --debug
Why not just do this?
./target/optimized/miden debug -a miden/examples/nprime/nprime.masm
This seems to already support debug.stack
An example would help potentially.
Would this
--debug
argument be passed into the command like this after building?./target/optimized/miden run -a miden/examples/nprime/nprime.masm --debug
Yes, that's how I was thinking it would work.
Why not just do this?
./target/optimized/miden debug -a miden/examples/nprime/nprime.masm
This command would start an interactive debugger and then the user would be able to step through the execution. The two approaches are similar but the interactive debugger is quite a bit heavier and may not be needed in all cases.
Closed by #1502.
Task
Add a flag to the run command which enables the assembler debug mode.