feat: support traces and debugging in `cast call`
Component
Forge
Describe the feature you would like
Sometimes a call can revert, and being able to see a trace or use the debugger to understand why is useful. The UX here would be adding --trace or --debug flags to cast call
Right now you can probably work around this by starting anvil from a fork, using cast send to send a tx to anvil, then inspecting the failed tx with cast run
Additional context
No response
imo this is what cast run is for
edit: nvm I see cast run just reruns a tx. Should be fairly simple to move the cast run logic into cast call and make cast run just "prefill" the arguments for you from a tx hash
it would be cool to also do this for cast send, since sometimes when it fails, it refuses to send on chain.
@onbjerg I suppose this can be closed. Ref: #5477