It would depend on what type of debt it was, it may be statute barred, but these must be dealt with very carefully. If judgement has been entered against you and you have defaulted, as has been said, you may have difficulty obtaining a mortgage and if you had managed to obtain a mortgage the creditor can apply to the court for an interim charging order against your holding in the property which would lead to a final charging order and possibly an order for sale.