3 ms·
This process gets really fun when you don't have a debugger. Just source and program. Add log, recompile. Add log, recompile. oy.
by someguy1234567 8y ago
This process gets really fun when you don't have a debugger. Just source and program. Add log, recompile. Add log, recompile. oy.
- throwawayjava 8y agoI actually prefer logs to interactive debugging -- grepping through 20 different execution traces is much more pleasant than stepping through them, and I can discover everything instead of stepping through N times to fill out my mental image as new information becomes salient from previous debugging sessions. Also, I have never learned how to interactively debug anything parallel or especially distributed :( But I also try to write/architecture my code so that the big stuff always gets logged. In cases where the logging isn't as good as it should be, a few hundred lines of reflection/meta-programming can enable just enough aspect-oriented programming capabilities to enable this approach.
- AstralStorm 8y agoAdditional fun when you are debugging something timing dependent like a livelock or a race condition.