Been there and done that. What helped me snap out of it is to really count my blessings. If you looked at things honestly you would see that not everything about that place is all doom and gloom. Find at least 1 thing to truly be grateful for while there and focus on that like a kitten watches a mouse.
When you get home and even while you are at work at least start planning mentally your exodus strategy. Have you ever considered what you life would really be like without that job? If you are there because you need the money then let that be your motivation. Think of all the things that paycheck affords you. Even if it doesn't go as far as you would like it to, it is still more than unemployment and remember that.
What would you like to do? Have you even started getting the education or training to move in that direction?
Only you can snap yourself out of this but it will require new thinking on your part. Doesn't your family deserve you at your best? I would begin to exercise my mind in a more positive direction and stop feeling sorry for myself. I really hope this helps.