A.C.
Generally speaking, both parties remain equally responsible for the debts for which they were both signers. The debt is often divided just like property in terms of who will pay. Unfortunately, unless the debt is re-financed into a single party responsible, the other spouse remains responsible until the debt is paid off.
If they both signed on the mortgage, the foreclosure will remain on both credit reports.