Skip to content

Use a custom runner in interpretExt and don't ignore TEST_ASSERT in dfsInstr

Description

When the debugger encounters a TEST_ASSERT instruction, its inner execution is not shown. This happens because interpretExt should take a custom runner instead of using runInstrNoGas so that the debugger can properly interpret its inner instructions.

Breakpoints cannot be set inside TEST_ASSERT because dfsInstr doesn't consider the inner instructions of TEST_ASSERT. This MR also fixes this.

Related issue(s)

This is a pre-requisite to solving morley-debugger#11 (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