Go to the truffle folder
cd truffleInstall truffle globally
npm install -g truffleTest the contract
truffle testDeploy the contract (edit truffle-config.js at first)
truffle migrateDebug transaction
truffle debug <transactionHash>Go to the hardhat folder
cd hardhatInstall dependencies
npm installTest the contract
npx hardhat testMeasure code coverage
npx hardhat coverageRun blockchain simulation (alternative of ganache)
npx hardhat nodeDeploy the contract (edit hardhat.config.js at first)
npx hardhat run script/deploy.js