Skip to content

[#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

    • I checked whether I should update the docs and did so if necessary:
    • I updated changelog files of all affected packages released to Hackage if my changes are externally visible.

Stylistic guide (mandatory)

Edited by Heitor Toledo Lassarote de Paula

Merge request reports