Basic entries in Balance of Payments

Page 454 of the curriculum; Exhibit 14 Basic entries in a BOP Context

Why is “increase in debt owed by foreigners” a debit entry? Shouldn’t it be credit because the country is increasing liabilities?

Similarly, "“increase in debt owed by foreigners” is a credit entry. Shouldn’t it be a debit because ultimately, the country will get money?

Any help?