Is the only reason you are staying together is because of your children? That is not a healthy relationship. A marriage counselor can help you examine the state of your marriage to determine if it should be saved or if divorce is the best option for all parties involved.
If there is a divorce with divided debt, assets, and property, it does not prevent filing for bankruptcy. A qualified attorney can advise you on how your situation is addressed in bankruptcy filings, the information you need to provide, and what you can expect. Always consult an attorney as to the possibility of your spouse filing bankruptcy either during the divorce proceeding or after the divorce has been finalized