There is nothing wrong with spending money, after all, that's what money is there for, however, it becomes a problem when you are spending what you don't actually have .. Wanting to spend money is very much tied to our emotions and wanting to feel good ..
Study's have shown that people tend to spend more when they are feeling sad or lack control in other areas of their lives This is called retail therapy, this not only reduces feelings of sadness but also restores a sense of personal control. This, of course, is a very temporary fix with longer lasting ramifications(debt) ..
Before you purchase question yourself, ask yourself this.. Do I really need this right now ? Can it wait until I don't need to use my credit card to get it ?.. Step away from the computer or walk out the shop and think of the implications of the purchase you want to make .. Step aside and breath for a minute and ask how does this align with my core values ..