> How can I persuade my boss to pay for Undo?
fun quote.. but my boss will never pay for it because I am the only one who use gdb in our company, unfortunately)
And CLion / VS Code for people who prefer an IDE interface.
But a lot of people do really want to stick with their printf debugging.
If your boss won't buy you an Undo you can still use https://rr-project.org/ - or on Windows the built in time travel debug of WinDbg.