All one can due is limit your debt to what is absolutely needed, like a mortgage, then if it all goes south try to at least maintain enough currency to pay that (exchange gold at real need etc...), the rest barter / grow/ work for.
My mortgage is our main debt-—everything else is bills (gas, electric, clothing, wine (lol), etc)
The main problem is NOT the mortgage it’s the property taxes-—they are the reason there’s NO way I can retire in the North East!