The mistake you had done on here is that you do still believe that you can pay up or make that money grown and able to repay those debts via gambling which is really a very wrong mindset.
Come to think that if you had able to put those amounts you borrowed on trading capital then you might still have the chance on earning money.
It might not be that fast or big as gambling outcome but its a bit assured that you can really play with it and those funds wont be vanished in a short span of time.
Money can be replace but life, we have only one. No matter what our situation is, even if we feel we are at the bottom of our life, we will surpass that challenge. Don't aim for the solution right away. Look for small steps to get out of the situation. Talk to the person where you borrowed the money. Negotiate how you can pay your debts. Talk to your family and be transparent with your situation. I believe they will prefer you to be alive rather than dead. Change for the betterment of yourself.
because you cant turn it back once you decided to end up your life.When you do gamble always put up in your mind on what are the consequences if you do try to be impulsive or chasing up your losses.