Unwanted Divorce

I write this with a heavy heart but need to b prepared for worse. My wife of 6 yrs and childhood sweetheart before that is planning to file for divorce and I don't blame her as I haven't kept my promise. But reason isn't any fight or family but financial. I have been financially unstable for most of our marriage and have debts also i owe some to her dad and she left to live with her parents an yr ago with our son and gave me a year to sort things. I haven't been able to but trying. She now doesn't talk to me and wants divorce although she doesn't stop me from talking to our child bug I fear for worse as I'm alone and he's my reason to live also he wants us together but he is 6 and needs a mother too so I can't b selfish and fight. Also I won't lie in court as I love my wife and admit to my mistakes. I don't want this divorce as I know things will get better but her rich family is otherwise. I wanna know a legal way to avoid divorce or delay for a longer times in can b bdsck on my feet. Is there a way as I know my case is weak and I won't insult my love or my son in court. This is from a heartbroken father. Please give proper legal advice.