Struggling with Hardhat debugging β am I missing something beyond console.log? π€
Iβve started building my first few smart contracts and use Hardhat for testing. But every time something fails, I just keep adding console.log everywhere until it magically works. It feels messy and Iβm never sure why it failed in the first place.
Iβve heard seniors say debugging is about validating state changes, not just reading logs β but I donβt fully get how to do that. How do you all actually debug smart contracts efficiently?
What routine or habit helped you stop chasing ghosts in tests?