Venezuela is an excellent example of a government unable to issue money arbitrarily, because they pegged their currency to the US dollar and accumulated debt in a currency over which they had no control.
AFAIK Venezuela has never pegged the bolivar to the US dollar. But the government did issue bonds in US dollars, I suppose those are the debts that you are talking about