Government debt is usually denominated in the currency that government issues. They can print themselves out of debt at any time. At the cost of inflation. And that currency getting devalued against the world's trading currency, the US dollar.
So if the country in question has a huge and diversified economy, this is less of an issue. And if the country in question can print more US dollars, and has never defaulted on its debt in centuries, I don't see how they would let that go.
The actual risk to an investor in US government debt of not getting paid is zero, unless their name is China and they start WW3.
Now, does this mean US government debt is a good investment? That's a different question.