Liabilities include debt but not only debt. So, I would say that debt is considered a liability and not the other way around.
Liability is anything that is expected to cause economic benefit to flow away from the company which includes debt, payables, contingent liabilities, unpaid tax and other unpaid expenses etc.