Skip to content

forge script --debug for unknown contract that is opensource on chain. #10835

Closed as not planned
@ethever

Description

@ethever

Component

Forge

Describe the feature you would like

Hi,
Currently, it seems that Foundry (forge) doesn't support debugging verified open-source contracts if their source code isn't present locally. This can be limiting when working with contracts deployed and verified on public networks, especially when the source is available on Etherscan (or similar), but not in my local workspace.

Is there a way to supply the verified source code manually (e.g., via a path or artifact input) so that forge debug can work as expected? If not, would it make sense to support such a feature—perhaps by allowing us to point to a verified source bundle or automatically fetch it?

Thanks for the great work!

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-featureType: featureT-needs-triageType: this issue needs to be labelled

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions