On the first day of every week each one of you is to put aside and save, as he may prosper, so that no collections be made when I come. 1 Corinthians 16:2
Setting aside some money and planning for the future are talked about many times in scripture. Planning ahead for things you need to buy, for giving and for other wants is key if you don't want to go in debt. And as I've stated here before debt is shown to be a bad thing in multiple verses throughout the bible.
So to avoid debt, get started by setting up your home budget, including all of your income and spending categories and keeping on top of it from week to week. Unless you know where the money is going, you'll never be able to save and plan ahead!