3 ms·
What I don't read much about, but depend on, is using a debugger on new code when there aren't obvious bugs in it. Just walking through it, while viewing variab
by Almaviva 16y ago
What I don't read much about, but depend on, is using a debugger on new code when there aren't obvious bugs in it. Just walking through it, while viewing variables, gives a wonderful sanity check to verify that code is doing what I think it is doing, and this catches a surprising amount of non-obvious bugs, and lines of code become easier to reason about precisely sometimes when you have visibility of the specific state of the program at that time. This is not a substitute for unit testing obviously, but it can catch problems that wouldn't be obvious or easy to unit test for.
For me, this is also a wonderful way to get accustomed to someone else's code, seeing exactly what it does first before spending the brain cycles upfront to reason about exactly what is going on.