Breaking up your family by way of divorce is never good and is an act of breaking God's covenant. In God's eyes marriage is meant to be a lifetime commitment, the bible says "Therefore what God has joined together, let man not separate”.
However God knows that since marriage involves two sinful human beings, divorces are going to occur, especially when sin outweighs holiness. The bible also says if there is sexual immorality or unfaithfulness in the marriage, then there is a valid reason for divorce.
Whatever issues you are dealing with in your marriage, seek Godly counsel from a trusted spritual advisor who will not share your business with others. Search the scriptures on what God says about divorce because the word of God can always be trusted.
Malachi 2:16 "For cthe man who does not love his wife but divorces her,10 says the Lord, the God of Israel, covers11 his garment with violence, says the Lord of hosts. So guard yourselves in your spirit, and tdo not be faithless.”