Question: when allowance for doubtful accounts has a debit balance?
Answer: Accounts receivable is usually a debit balance. It's contra asset account, called allowance for doubtful accounts, will have a credit balance. When you add these two balances together, they offset each other, revealing the amount possible to collect in accounts receivable.