I used to feel the same, a lot. Having undiagnosed bi polar 2 didn't help, but one day a friend said to me the only reason to kill yourself is if you have done and achieved all you want to in life. I realised that I didn't have to feel trapped any more, between the choruses of suicide and ruining my families life, or living a miserable life myself. But by but I was able to make things better and gettig a job in one of the helping industries helped- knowing there were people worse off than me and I was being useful to them
Whe I got diagnosed with bi polar 2, I was able to get the right help and turn my life around even thigh at first I thought it was a scary thing to have a label like that.
Sometimes I still think there's no point but I chugg along and don't get bogged downon the thought, it is just a thought.
Mindfulness training and the against the stream podcasts (google it with the name Noah Levine) helped lots too