I go step by step, my approach is usually to follow the data. Checking variables at different points in code to see if they are what they're supposed to be. If I can't solve it I usually Google it, although recently I've started using chatgpt