That's a little mixed up. The effect of inflation is to reduce the effective size of debt, not increase it. So if you owe someone $500US(which has a barter value of ~100 lattes), and a burst of inflation hits the dollar such that the price of a latte doubles, then you only need to pay back 50 lattes to the lender. You win!
Obviously it's the holder of the debt that ends up on the hook for this. Which is why interest rates of lots of debt get indexed in some way to adjust with inflation (or things like the prime rate, which itself tends to track inflation). So the net effect is complicated. But on the whole it's the lenders of money who stand to lose the most when inflation rises. Those who have borrowed come out ahead, on average.
So the net effect of inflation (assuming no second order effect like a global crash, yada yada yada) is to effect a wealth transfer from the lenders of money (e.g. banks and institutional investors) to the borrowers of money (consumers and governments).
There are some very smart people who think this isn't necessarily a bad thing at all.