We distinguish two attitudes towards debt. The attitude of prudent borrowers, which attempt to stabilize their debts to low levels, even in the event of a bad shock, and what we call, after Krugman, "Panglossian" borrowers, which only focus on the best of their growth prospects, and rationally anticipate to default on their debt when hit by a bad shock. We show empirically that this distinction is consistent with the data. Past a threshold of risk which, we show, corresponds to a spread of about 450 basis points, countries fail to respond to bad shocks and let their risk drift accordingly. We also distinguish two types of debt crises. Those which are the effect of an exogenous shock, and those which are self-fulfillingly created by the financial markets themselves. We show that the large majority of crises are of the first kind, although the probability of self-fulfilling cases is not negligible.