Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gnovm/debugger): support breakpoints in loop bodies (gnolang#2251)
A gnovm debugger breakpoint in a loop body was working only the first time, and was ignored the next times, letting 'continue' to skip over it. This is fixed by updating the debugger previous code location state variable at each VM cycle, instead of just when used by 'step'. This also corrects similar variants, like breakpoints working only once in recursive function calls. Thank you @jaekwon for raising the issue and discussing the solution. <!-- please provide a detailed description of the changes made in this pull request. --> <details><summary>Contributors' checklist...</summary> - [*] Added new tests, or not needed, or not feasible - [*] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [*] Updated the official documentation or not needed - [*] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [ ] Added references to related issues and PRs - [ ] Provided any useful hints for running manual tests - [ ] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md). </details>
- Loading branch information