How do you pay off debt when you are broke?
One way to do it is to go to the creditor, prove you are broke, and want to avoid bankruptcy.
Odds are they will reduce (or maybe postpone or eliminate) the debt. That’s how a lot of insolvent people settle their debts amicably.
If your debt is a loan on a home, in many places you can just turn over the keys & sign off to avoid a foreclosure. The lender will often release a man who is unemployed and broke from the possibility of a deficiency judgment.
That pays off the debt.