Debit and credit are the two sides of a double-entry transaction.
The effect depends on the type of account. For example, an increase in an expense is normally a debit, while an increase in sales income is normally a credit.
It is more useful to understand how each account type behaves than to memorise that debit always means money in or credit always means money out.