Whenever I’m getting frustrated and don’t know where it’s all going wrong, I give myself a time limit before I reset my code.
A lot of the time, I’ve spelt something wrong (I’m from the UK and code is always in US English!) other times, it forces me to go through the steps sequentially one more time, only with more understanding and experience than before.
Give it a try, maybe you’ll find it helpful too!