Skip to content

Debugger improvements #3

@fungibit

Description

@fungibit

There are several improvements to make:

  • customizable settings -- settings are currently defined as constants in dbg.py. Should make them customizable in a designated dotfile and/or interactively in the debugger session
  • Display a value in stack -- support selecting a specific value in the stack (up/down arrows), and display its full (not truncated) value in another part of the screen. Currently, there is no way to view the full value
  • refactor python-bitcoinlib to avoid copy-pasted code in execution.py -- _EvalScriptGenerator() and _VerifyScriptGenerator() are copy/pasted/modified from bitcoin.core.scripteval. Should refactor bitcoin.core.scripteval, submit a PR, and avoid the copy-pasting.
  • docs: add an animated gif demonstrating a debug session
  • [advanced] "step into" OP_CHECKMULTISIG -- although OP_CHECKMULTISIG is an atomic script operation, a lot is going on when it runs (the logic of which signatures to compare isn't trivial). Would be nice to be able to "step into" that OP and see its steps.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions