sway icon indicating copy to clipboard operation
sway copied to clipboard

[Tracking] `forc` debugger command

Open mitchmindtree opened this issue 3 years ago • 0 comments

Overview

The fuel-debugger is a CLI tool that acts as a FVM client and provides runtime debugging support for FVM bytecode.

We should provide a forc debugger (or forc dbg?) plugin that wraps and extends fuel-debugger with sway/forc-specific functionality.

This might include:

  • Configuration via forc manifest.
  • Debug build profile awareness.
  • Automatically sources contracts, bytecode from out/.
  • Ensures target is build before running the debugger (or alternatively, recommends running forc build if out/ artifacts don't exist yet).

https://github.com/FuelLabs/fuel-debugger/issues/15#issuecomment-1189807099

TODO

  • [ ] Address blocking language issues:
    • #2055.
    • #1527.
  • [ ] Create a forc-dbg crate under plugins/. TODO: Break this into sub-issues.
  • [ ] #1864.
  • [ ] Ensure docs automatically generate correctly under forc chapter in sway book.
  • [ ] Ensure plugin is tested under CI.

mitchmindtree avatar Jul 20 '22 05:07 mitchmindtree