-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for internal function jump trace #4351
Comments
This would also be useful for Right now when I am auditing a contract it is hard to follow the trace and understand which internal functions are called. This especially applies if there are a lot of if cases or otherwise complex control flow. |
This is non trivial since some internal functions get inlined. |
Yeah, it's hard to match all function. I wrote a simple demo based on |
Related WIP PR: #8222 |
Component
Cast
Describe the feature you would like
At present, foundry only supports external
call
trace, which is a black box for internal logic function calls, makes it difficult to debug some intermediate variable values.Hope to introduce the analysis of
JUMP
opcode to support the internal function trace.Additional context
vm.etch()
+console.log()
forge --debug
modeBut the alternatives are a little bulky. We need this feature so that we can clearly see all internal and external function calls trace.
The text was updated successfully, but these errors were encountered: