fvictorio / hardhat-examples

122 stars 14 forks source link

Advanced debugging example #1

Open julianmrodri opened 3 years ago

julianmrodri commented 3 years ago

Would be nice to have an example on the use of advanced debugging features provided by Hardhat.

Of course should include console.log plus other tricks and hacks you can do with Hardhat for debugging complex contracts.

fvictorio commented 3 years ago

Hey @julianmrodri, thanks for the suggestion. What would you like to see included besides console.sol?

julianmrodri commented 3 years ago

Maybe bring to a concrete example the Debugging-first approach that Hardhat promotes.

Like if you look at the site "Hardhat is the best choice for Solidity debugging. You get Solidity stack traces, console.log and explicit error messages when transactions fail.".

So anything that justifies or demonstrates why its the best choice for debugging would be nice to see it in an example (not just the code but I imagine it should include like a guide as well as debugging is an interactive process? Not sure.

fvictorio commented 3 years ago

Oh, I see. That's a good idea, thank you!