If a debt owed in the wake of divorce is not for support, Section 523(a)(15) sets out the test to determine if it might still be nondischargeable in bankruptcy. Here’s the text of 11 U.S.C. §523(a)(15):
(a) A discharge under section 727, 1141, 1228(a), 1228(b), or 1328(b) of this title does not discharge an individual debtor from any debt– . . .
(15) not of the kind described in paragraph (5) that is incurred by the debtor in the course of a divorce or separation or in connection with a separation agreement, divorce decree or other order of a court of record, a determination made in accordance with State or territorial law by a governmental unit unless–
(A) the debtor does not have the ability to pay such debt from income or property of the debtor not reasonably necessary to be expended for the maintenance or support of the debtor or a dependent of the debtor and, if the debtor is engaged in a business, for the payment of expenditures necessary for the continuation, preservation, and operation of such business; or
(B) discharging such debt would result in a benefit to the debtor that outweighs the detrimental consequences to a spouse, former spouse, or child of the debtor.