foundry-rs / foundry

Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.
https://getfoundry.sh
Apache License 2.0
8.12k stars 1.68k forks source link

feat(`debugger`): display `gasleft`, `totalGasUsed` and number of subcalls #8784

Open peyha opened 2 weeks ago

peyha commented 2 weeks ago

Component

Forge

Describe the feature you would like

'sup Would it be possible to add more information such as the gas left, the number of subcall and the total gas used in the transaction in the debugger ? I am investigating gas issues and not seeing the gas left is making it way harder Probably quite easy to implement and would be really helpful thxxx

Additional context

No response

bernard-wagner commented 1 week ago

I was investigating this a few weeks ago, so linking an issue from revm for some changes that might be necessary.

https://github.com/bluealloy/revm/issues/1688