Which debts can be discharged through bankruptcy?

Bankruptcy generally discharges most debts, with a few exceptions like taxes, child support, alimony, and student loans.