-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
bug(forge script
): --debug
doesn't show source code
#5435
Comments
Seeing this on my end as well. |
Closing @Evalir ? |
|
cc @iFrostizz @Evalir, this seemed to be mitigated at the time, but I am frequently (inconsistently) not able to view sourcemap for te actual contract(s) I am testing – the test contract sourcemap works fine, but calls to the actual logic contract show no sourcemap. |
Hard to say without having a reproducible example @emo-eth |
I can look to work up a MCVE for this, if useful because we're hitting the same. I just want to make sure I understand how it's meant to work correctly to rule out any false assumption on my part. So at the moment I'm trying to debug a deployed contract via forking like this: CONTRACT=<contract-address> forge debug --debug scripts/DebugRemote.s.sol --fork-url $RPC_URL
When I'm walking through the debugger it shows me the source code for the
Should |
#7058 will hopefully resolve some of these issues |
Hi @0xGuybrush, sorry for the delay. Would be great to have a minimal reproduction of this! @emo-eth are you still experiencing issues with this since #7111 + #7058? |
Hi @zerosnacks. Yes absolutely! Please check it out here. I've just added a script to the default Happening still with I'm seeing a flow like this: 1. Behaving as expected in the
|
Awesome! This helps a ton |
forge script
): --debug
doesn't show source code
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
nightly 0e72b71
What command(s) is the bug in?
forge script --debug
Operating System
Linux
Describe the bug
Source code debugging seems to have recently broken. In the current nightly (0e72b71), I can do the following:
..and where the source should be, it says "Unknown contract at address 0x5b73...0519"
Earlier versions, for example 288ab2e from about 2 week ago, correctly show and step through the source.
Also, I have not been able to get any recent versions to show source code when stepping into on-chain contracts, even though I've set my ETHERSCAN_API_KEY in env and toml.
The text was updated successfully, but these errors were encountered: