Judith Sadler explains how the court decides what to do in situations where a divorcing couple has accrued large debts.