I could not possibly agree more with kickserv's post. I am twice divorced, have a child from each, remarried now, happily, for 8 years. If both parents are somewhat sensible and do not use the children in the divorce and afterwards, then the kids are usually better off.
Not knowing the situation at your home, it's impossible to know what is worth it or not. I have done the leaving, and been told to go. I was happy doing the leaving, and sad to be told to go. Usually, I find that both people are not trying hard enough, and money troubles are often the heart of the issue.
My wife is a family law attorney...I have heard of just about everything. And if I've learned anything, it's that there are probably a lot of things to consider in judging, that most people will never know about the people and situation you are judging.
Kneejerk response - if both parties are really wanting to work hard to make things better, it's probably worth trying it. If you already have, or one doesn't want to, then probably best to move on. The kids have a tough time watching the garbage that goes on with bickering/apart parents at home, IMO, and when they only see one at a time, and the time is far more special and individual, it can really be a good thing. Although, it can be very scary.
Tough. Sorry you are going through this. Have been there, too. Best of luck to all of you.