Debugging code and adding in useful print statments