How does credit card debt affect a mortgage application?

Having debt isn’t necessarily a problem. But the amount of debt and your history of repayment could affect the amount you’re allowed to borrow, the interest rate you pay and even whether you qualify for a mortgage at all.