The debt to GDP ratio is at its all time worst right now. Worse than the Great Depression which is bad but that is not the cause of inflation. Inflation happens with the money supply is greater than the value it backs, basically there are too many dollars in circulation.
Other things that add to inflation are tax increases, increased government regulations on business and tariffs. When the government does things to hurt business that increases the cost of running the business which is passed on to the consumer in higher prices.
We've been in a very precarious situation ever since Obama took us here. Trump didn't get us out of this situation because the debt to GDP ratio was over 100% for his 4 years also. Obama took it over 100% and the last I looked it was 140%, which, if I remember correctly, is higher than the highest during the Great Depression.
This situation is where the Feds have been keeping the interest rates too low and printing dollars. To get those dollars out of the economy the Feds need to raise interest rates but to pull back on inflation they will need to raise rates up around 40%. If they do that it will collapse the economy. If they don't it will collapse the economy. We have been barely hanging on ever since Obama put us in this situation. The absolute worst thing to do is to turn up the printing presses at the Fed.