Budgets rarely work. It takes tremendous effort to accurately record all transactions so that you have a valid budget. Then, frequently, after all this effort, you rarely come back to the budget. That means that the work had no payoff. Furthermore, people often claim that they had nonrecurring expenses. Doing so, they artificially understate their expenses, not realizing each year has some nonrecurring event.
A much easier way to test savings is to take a twelve-month period, look at cash and credit card balances at the beginning and end, check for any inflows from gifts or other non-salary items, and then measure the change. Did the cash accounts go up or did the credit cards go up? That is your savings/dis-savings for that year.
Rather than doing a budget to adjust behavior, force a change. You can do that by removing money from your discretionary spending by contributing the maximum to a 401(k) plan, by an auto debit that put funds into an investment account, and other auto payments. If your credit card balances go up, then you have to make a decision to alter behavior, such as cutting entertainment, or decide to delay goals (retire later, no new car now, etc.)
How does cash flow relate to debts? Managing your debt means getting the lowest after-tax interest rate so that you pay as much principle with each payment to pay off the loan as quickly as possible. You can deduct the interest paid on a mortgage and an equity line of credit debt. You can deduct up to $2,500 of student loan debt. But you cannot deduct the interest on most other debt, unless used for your business (watch for a post on side hussles).