Foundry is a framework for testing, debugging and deploying Solidity smart contracts. Check out this Foundry tutorial to learn more about how to use it for debugging, fuzzing and breaking contracts.
https://jamesbachini.com/foundry-tutorial/