Debugging Solidity with Hardhat's console.log: How It Works and When to Remove It
Hardhat's console.log brings print-style debugging to Solidity. Here's how it intercepts calls on the Hardhat Network, a working example, and why you must strip it before deploying.