Skip to content
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

forge debug cannot display code #3498

Open
2 tasks done
zrankn opened this issue Oct 15, 2022 · 3 comments
Open
2 tasks done

forge debug cannot display code #3498

zrankn opened this issue Oct 15, 2022 · 3 comments
Labels
A-debugger Area: debugger C-forge Command: forge T-bug Type: bug

Comments

@zrankn
Copy link

zrankn commented Oct 15, 2022

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (ee88f75 2022-10-04T00:07:32.8134078Z)

What command(s) is the bug in?

forge debug --debug tokentest.sol --sig "testtrang()" --fork-url https://rpc.ankr.com/bsc

Operating System

macOS / Windows

Describe the bug

I want to debug the whole process of the function and watch the process and result of the code running, but when there is a function that calls other contract functions, I can't see the code that calls other contract functions。
And I can't debug tx hash
photo_2022-10-15_11-31-25

@zrankn zrankn added the T-bug Type: bug label Oct 15, 2022
@zrankn
Copy link
Author

zrankn commented Oct 15, 2022

forge --version
forge 0.2.0 (b554ab1 2022-10-15T00:07:41.079769Z)
Execution error
“Error:
No input files detected.”

@iFrostizz
Copy link
Contributor

afaik, forge is not pulling the contract code from etherscan for now.
Easy fix is to download the code and reference to it locally.

@rkrasiuk rkrasiuk added C-forge Command: forge A-debugger Area: debugger labels Oct 17, 2022
@ghost
Copy link

ghost commented Jan 27, 2023

afaik, forge is not pulling the contract code from etherscan for now. Easy fix is to download the code and reference to it locally.

How to reference to it locally. Is there a case study?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-debugger Area: debugger C-forge Command: forge T-bug Type: bug
Projects
No open projects
Status: Todo
Development

No branches or pull requests

3 participants