[#437] Show the whole stack on DIP instruction
Description
Problem: Currently, when going into a DIP
or DIPN
instruction, the
debugger only shows the inner stack. Suppose we have a : b : []
, then
after a DIP, only b : []
would be shown in the Variables widget. This
changes it so that a : b : []
is still shown.
Solution: If we are about to execute a DIP
or DIPN
, save the N first
elements of the stack on the current StackFrame. Prepend the "outer"
stacks to our current stack when necessary by DAP with the newly added
issFullStack
function.
This is based on !662 (merged).
Related issue(s)
Resolves #437 (closed)
Resolves #101 (closed)
✅ Checklist for your Merge Request
Related changes (conditional)
-
Tests (see short guidelines)
-
If I added new functionality, I added tests covering it. -
If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
-
-
Documentation
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.
Edited by Heitor Toledo Lassarote de Paula