From the perspective of the typical user (ie excluding financial institutions and other lenders), a debit is something you owe (a debt), and a credit is something owed to you.
Debits include debts due, invoices rendered etc.
Credits include payments made.