You may have to repay certain debts and then seek compensation from your spouse.
Example: You have $1,000 in credit card debt where you and your spouse both co-signed on the card. In your divorce decree, your spouse agreed to pay back $1,000 in credit card debt. You agreed not to be responsible for the debt (held harmless).
Your spouse discharges the debt in Chapter 7 bankruptcy. The credit card company cannot go after your spouse. But they can go after you. If they do, you must repay the debt. And then, under the hold harmless provision of your divorce decree, you can sue your spouse to reimburse you for the $1,000 debt you paid the creditor.
However, if your spouse discharges the debt in Chapter 13 and the credit card company later goes after you, you probably cannot sue your spouse. But you can ask the divorce court to raise the amount of support you get because your financial circumstances have changed and you are now responsible for more debt.