trufflesuite / truffle

:warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.
https://consensys.io/blog/consensys-announces-the-sunset-of-truffle-and-ganache-and-new-hardhat?utm_source=github&utm_medium=referral&utm_campaign=2023_Sep_truffle-sunset-2023_announcement_
MIT License
14.02k stars 2.31k forks source link

Allow truffle-debugger to take source files generated from compiled files #3519

Open makoto opened 3 years ago

makoto commented 3 years ago

Issue

Currently at ENS, we have about 8 different truffle repositories where we manage smart contracts independently.

To setup testing environment for our react app (app.ens.domains) locally, we are currently loading build/contracts/*.json files of each repo and deploying from a single file, but some of setup transactions reverts and it is really hard to debug.

I wanted to use truffle-debug but these contracts are deployed into ganache hence can't be verified. I can figure out exactly where these json files are so would be nice if there is a way to be able to specify these source files to debugger manually rather than truffle infer the file location using truffle file structure.

eggplantzzz commented 3 years ago

Thanks for the issue submission @makoto! This is something that will require some planning to solve. I'm not sure when we'll be able to implement one but we'll keep it in mind!

haltman-at commented 3 years ago

OK, so just to be clear, the issue here is that you want to debug a transaction involving contracts from multiple distinct Truffle projects?