International Capital Flows and Debt Dynamics