Skip to content

Debug forked contracts at source code level #12747

@sdajklfw389

Description

@sdajklfw389

Hello,

I am not sure that if this feature is done, maybe i have done something wrong. But I have a simple demo project, which deploy two contract to a Anvil chain and i forked the Anvil chain(by vm.createSelectFork) and use forge test --debug to see if the source mapping works. But no, I still only step into opcode.

I am wondering why this does not work?

I think to debug forked contracts is very intuitive, especially when we have the source code of the forked contracts.

https://github.com/sdajklfw389/FoundryDebugForkedContracts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions