Foreign countries like Japan and China own around $1.8T in US bonds. These are valued in dollars, like stocks.
The US would still have to pay the debt in Dollars. Devaluation affects currency exchange rates. Debt would be less valuable in Yen and Renminbi but just as expensive for the US government.