If you have a bad credit rating and existing debts, this wont rule you out of getting a mortgage, it may just mean you are higher risk, which may result in less options.