Not all debt is the same. 'Good' debt is borrowing at a low rate to buy something that builds value or income over time — like a home or, sometimes, education. 'Bad' debt is borrowing at a high rate for things that lose value or vanish — like a credit card balance on a vacation. The test isn't whether you borrowed; it's what the borrowing bought and at what cost.
Two things: a low interest rate, and an asset that tends to grow or generate income. A mortgage on a home, or a loan for a degree that meaningfully raises your earnings, can pay for itself over time. The borrowed money is working for you, not just funding consumption.
A high interest rate attached to something that loses value or leaves nothing behind. Credit card balances on everyday spending are the classic example — high cost, no lasting asset. The interest compounds against you while the thing you bought is already gone.
Ask: does this buy something that will likely be worth more or earn more later, and is the rate low enough that it's worth it? If yes, it may be good debt. If it's a high rate funding something disposable, that's the trap.