Divorce can be settled out of court between lawyers. It is much better if you can come to divorce terms out of court. In my case (living 2100 miles away after I left) it was cheaper to walk away then spend any more money on legal fees. I had spent almost 10,000 on lawyers & still came away with nothing cause I wouldn't have gotten enough to even cover those legal fees. Be wise & weigh legal cost vs what you can possibly receive splitting debt & assets. Worth it to have a discussion with a lawyer but be aware that debt & assets are usually equitably split by a judge so you may be better using a lawyer or just agreeing to the split & filing in court yourselves if you can agree.
My now ex fought a divorce when I lived there because later he said he thought it would make him look like a looser & he didn't want to give up "things"....so I left & never came back (lots more to it than just that, but the basics after 33 years in the marriage)