Choose new alternative behaviours
Now that you have recognized a little about where your behavior stems from. Attempt to find an alternative behaviour. Write down what you can do.
For example - instead of going out to buy something for myself that I will regret, I will call a friend and catch up with them.