Do it together.
If you wait to file bankruptcy after your divorce, odds are that both of you will need to go bankruptcy, and now you’ve just doubled the court fees and attorney’s fees for filing two separate bankruptcy cases.
You may kid yourself that your ex-spouse is going to have to pay all of the debt in the divorce decree.