I would encourage marriage counseling and individual counseling if you guys are even remotely trying to figure out if you can work it out. There are so many studies out there that sshow that a united family is ultimately better for your kids but only if everyone is willing to work on the marriage and themselves.
How old are your kids, how long have you been married?
*edit
Did you guys do individual counseling as well as marriage counseling and for how long because it's not going to be fixed in six months of counseling it's going to take probably years to fix things properly
And it's an ongoing struggle that will be something you probably have to work at forever.
The real question is do you want to save your marriage and your family.
As a sidebar my mom walked out on our family-my dad got custody of us. If you want custody you better stick it out as long as you can and be the better man, make her be the one to leave, her be the one move out and under no circumstance let her take the kids with her.
Kill her with kindness.
Don't engage her in arguments.