Not profits but debt. With the ultra-low interest rates of the last ten years, companies could finance bonds at rates just above inflation. However, instead of using those funds to grow the business (e.g. R&D), they simple bought back shares, increasing the price of the stock.
Can you cite? What companies are using debt to finance repurchases? Also the person you responded to probably meant that they profit in a technical bookkeeping sense not. You can still have profit while having debt and profit will be taxed in a certain way.