Skip to content

Commit

Permalink
REVM debugger (#920)
Browse files Browse the repository at this point in the history
* feat: port debugger data structures

* feat: initial port of `ui` crate

* chore: add `ui` crate as a workspace member

* refactor: adjust ui contract identification

* feat: grey out 0 values in debugger memory

Closes #902

* style: minor debugger ui beautification

* feat: better stack display in debugger ui

* feat: gray out zero bytes in stack view

* feat: debugger inspector

* refactor: minor code cleanup

* feat: port `forge run`

* fix: temp fix for failing `DsTest.sol` include

* chore: fix lints

* test: adjust `forge run` tests

* refactor: use simple bool for revert checks

* chore: remove unused display impl

* chore: remove unused comment

* fix: display number of stack items in ui

* docs: prettify cli help for some commands

* feat: `forge test --debug`

* refactor: `get_create_address` util

* refactor: `InspectorData`

* docs: more detailed err for `forge test --debug`
  • Loading branch information
onbjerg committed Mar 17, 2022
1 parent 1d9ae2e commit 7c1f955
Show file tree
Hide file tree
Showing 26 changed files with 1,327 additions and 525 deletions.
77 changes: 75 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ members = [
"cli/test-utils",
"config",
"fmt",
"ui"
]

# Binary size optimizations
Expand Down
3 changes: 1 addition & 2 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ foundry-utils = { path = "../utils" }
forge = { path = "../forge" }
foundry-config = { path = "../config" }
cast = { path = "../cast" }
# TODO: Re-enable when ported
#ui = { path = "../ui" }
ui = { path = "../ui" }
dunce = "1.0.2"
# ethers = "0.5"
ethers = { git = "https://github.com/gakonst/ethers-rs", default-features = false }
Expand Down
3 changes: 1 addition & 2 deletions cli/src/cmd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ pub mod init;
pub mod inspect;
pub mod install;
pub mod remappings;
// TODO: Re-enable when ported
//pub mod run;
pub mod run;
pub mod snapshot;
pub mod test;
pub mod tree;
Expand Down

0 comments on commit 7c1f955

Please sign in to comment.