I don't know. I am also depressed and so, unfortunately, nothing at all actually sounds good.
The path I know people talk about out of coding is Product Management. Are there others? It always seems like a pay cut and I'm already always so strapped for cash. Moving cities seems equally as overwhelming as changing careers.
Also: seek professional help for the depression. CBT works remarkably well. Many of us (me) have been there, or on the edges, and its easy to find somebody to work through the issues with. I can't promise you will get your mojo back, but there is a fundamental truth to "a problem shared is a problem halved" if you pick the right professional person to share it with.
I'll echo what other people have said about taking care of your mental health first.
If you're strapped for cash as a software dev, either you're not budgeting appropriately (take a sober look at how often you eat out), or you're not making nearly as much as you could (look for a different job), or you've set yourself up to live beyond your means (switch cars, or look for a different living situation). I've been in both of the first two situations before, and getting out of them had as much to do with a different mindset and finding good people to be around. I've always tried to live within my means (aka not taking on more than a couple weeks worth of debt if I can afford not too). That being said, taking that close look at your finances can be difficult when you're not in a good place mentally, so if you can get some help there, I'd recommend it.
If you have family, or really close friends, you might see if you can crash with them for a while, working on a career pivot during that time, or just looking for a different workplace.
I lost a tech job in December of 2018, and didn't get back into tech until August of 2019, and ended up working fast food for a few months. It was a nice time for clarifying some things, and establishing my identity beyond "guy who writes code". Before I was let go, I was struggling with getting things done and fitting into my workplace.
A big YMMV on this, but do try to take some time to walk and start considering some angles to life that might seem more crazy than you'd normally consider.
Do you have any idea of what it is that you hate about writing code?
I'm asking just to figure out what kinds of things to perhaps avoid when thinking of what else to do.
Also, it sounds like a difficult situation you are in if the depression makes changing things in your life more difficult (as it may often do). If you don't have professional help already, try and see if you can find some. The best thing might be someone who personally feel like they could understand you and your issues (especially if you don't have friends like that). It's not a silver bullet but it might help get started.
If money is the problem, try and see if there are some kinds of small-ish changes you could make to remedy that. I know from experience that just making those changes can be difficult if you're depressed enough, but I noticed I could save noticeably by eating out a bit less and making simple meals at home instead. It takes a bit of effort to get started and that may seem overwhelming at first but you may be able to save surprising sums for something else.
Of course all of that depends on your living situation, housing costs etc.
Either way, getting out of a job that's draining you can be important to your mental health and well-being, but other aspects of that are equally important, and making some changes where it's easier first might be helpful.
I've experienced something kind of similar (and, to be fair, I'm not nearly out of the woods yet, but I've seen some of the things that don't work), so I can see how it could be a difficult situation.
(Using a throwaway because I don't really talk about my own mental health in public.)
Work on your mental health first. Changing careers itself is stressful. Your code doesn't have to be pretty, you can use it as fuel for a hobby you actually enjoy doing after work/weekends. It could be photography, plastic model building, racing cars at track days, tennis, golf, etc.
The key there is also to join the communities to engage and learn, along with getting outside.
I might suggest an approach in parallel. If development sucks that bad for OP, getting steamrolled by some shit while trying to pretend like they're not getting steamrolled is maybe not the best plan.
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.
Product Management is my gig now. Its fun, but its bound up in Dale Carnegie "seven habits of highly effective shysters" lingo. But that said, the UX people are really nice. You could do a lot worse, but you have to be a "people person" do to PM, because the primary issue is fit-for-purpose in badly thought out hypotheses on a product or feature, which means people...
Writing and communication are similar skill sets to coding. Sales engineer can pay quite well, and needs someone with a technical background. You can also do teaching and training, which is far less stressful.
The path I know people talk about out of coding is Product Management. Are there others? It always seems like a pay cut and I'm already always so strapped for cash. Moving cities seems equally as overwhelming as changing careers.