The 1940s solution was 1) hold rates low despite high inflation to inflate the debt away, 2) ban gold and do other capital controls to reduce speculative attacks on the currency while rates are below inflation and 3) perform fiscal austerity after the war.
Good luck if they try that today.