Time to learn some C
Where do I debug my programs? CLion from the beautiful JetBrains does not have a community version. I have to resort to unworthy VS Code.
I install C/C++ plugin in VS Code. A weird thing happens. The debugger works only the first time in any program I write. Every next time it exits with status 0 but clearly does nothing. It does not print anything, it does not stop at breakpoints.
If I ever have time to configure the editor, it is not going to be VS code. I will do it one day with Vim. Fuck VS Code. Let's compile and debug in the command line. I will learn a bit more.
I have no problem with compilation.
It turns out, some dirty hacks are required to run GDB on Mac. Apple fancies another thing called LLDB. Why don't I use that one? I do not know any of those anyway.
LLDB does not work out of the box either. I enable DevToolsSecurity. I run the script from the LLDB repository to configure code signing stuff. Still, it does not work. I guess, the issue is my corporate Mac.
I end up spinning up a VM and finally running GDB in there.