15 points | by theapache64 9 hours ago ago
4 comments
I never heard it called caveman debugging before but I love the name.
I am a huge fan of print debugging. Debuggers have their place, but most of the time print is just easier and it fits better into my mental model.
I agree, but I have found gdb is great for core dumps. Getting Linux to create one, another issue :)
BSDs though just creates them when your program dumps for you enjoyment.
You're already using IntelliJ just use tracepoints and get a ton of advantages without forgetting prints in production. Stop living in the 70s, that quote makes sense when you're building a kernel not a modern user space app.
I never heard it called caveman debugging before but I love the name.
I am a huge fan of print debugging. Debuggers have their place, but most of the time print is just easier and it fits better into my mental model.
I agree, but I have found gdb is great for core dumps. Getting Linux to create one, another issue :)
BSDs though just creates them when your program dumps for you enjoyment.
You're already using IntelliJ just use tracepoints and get a ton of advantages without forgetting prints in production. Stop living in the 70s, that quote makes sense when you're building a kernel not a modern user space app.