Alternatively, one could step through the program using the into command in the debugger. However, the call stack is still not displayed when functions are entered, while this used to be the case before the problematic PR.
I suspect that the source-mapping information is somehow lost after the change.
Could you please roll-back the change?
Expected Behavior
nargo debug can be used to step through the program line by line via the next command.
The into command steps through instructions and displays the call stack when functions are entered.
Bug
The next command just terminates the execution; possibly, because the debugger does not recognize that the program contains any source lines.
The into command steps through instructions but does not display the call stack when functions are entered.
To Reproduce
navigate to test_programs/execution_success/inline_never_basic
run nargo debug
issue a next command
The debugger completes the execution, rather than stepping to the first source line (this used to be the behavior before).
Workaround
None
Workaround Description
No response
Additional Context
No response
Project Impact
Blocker
Blocker Context
We are leveraging the debugger in a tracer that we've built in the blocksense-network/noir fork. Now that it's not working as before, our tracer is broken.
Nargo Version
nargo version = 0.33.0 noirc version = 0.33.0+e4f7dbe63b55807b3ff0b4d6f47a8b7f847299fb (git version hash: e4f7dbe63b55807b3ff0b4d6f47a8b7f847299fb, is dirty: false)
Aim
Before https://github.com/noir-lang/noir/pull/5696 was merged (i.e. syncing at commit https://github.com/noir-lang/noir/commit/2882eaeb176988bb3d216d091c0e239f5b80f276),
nargo debug
exhibited the following behavior:After the PR is merged (i.e. syncing at commit https://github.com/noir-lang/noir/commit/e4f7dbe63b55807b3ff0b4d6f47a8b7f847299fb),
next
seems to step through the whole program and complete the execution:Alternatively, one could step through the program using the
into
command in the debugger. However, the call stack is still not displayed when functions are entered, while this used to be the case before the problematic PR.I suspect that the source-mapping information is somehow lost after the change.
Could you please roll-back the change?
Expected Behavior
nargo debug
can be used to step through the program line by line via thenext
command.into
command steps through instructions and displays the call stack when functions are entered.Bug
next
command just terminates the execution; possibly, because the debugger does not recognize that the program contains any source lines.into
command steps through instructions but does not display the call stack when functions are entered.To Reproduce
test_programs/execution_success/inline_never_basic
nargo debug
next
commandThe debugger completes the execution, rather than stepping to the first source line (this used to be the behavior before).
Workaround
None
Workaround Description
No response
Additional Context
No response
Project Impact
Blocker
Blocker Context
We are leveraging the debugger in a tracer that we've built in the
blocksense-network/noir
fork. Now that it's not working as before, our tracer is broken.Nargo Version
nargo version = 0.33.0 noirc version = 0.33.0+e4f7dbe63b55807b3ff0b4d6f47a8b7f847299fb (git version hash: e4f7dbe63b55807b3ff0b4d6f47a8b7f847299fb, is dirty: false)
NoirJS Version
No response
Proving Backend Tooling & Version
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response