I'm a big fan of rubber duck debugging, which is essentially getting an inanimate object and explaining how your code works, step by step. It makes you feel weird, and people will think you're losing your mind, but if you don't care about those things then it's actually very helpful. I've solved many a problem talking to a stuffed animal 😂