I would seek out a therapist to work on your depression.
It is difficult and not advisable to make career decisions in the fog of depression. You can take small steps before committing to a big decision.
There are plenty of paths out of coding. You could become a sales engineer for one, a solutions architect is another. You could become a consultant. You could go back to school and get an MBA for example.
There are plenty of paths out of coding. You could become a sales engineer for one, a solutions architect is another. You could become a consultant. You could go back to school and get an MBA for example.