3 ms·
printed/println debugging works if you wrote the code or have a good idea of where to go. I frequently find myself debugging large unfamiliar code bases, and t
by robdar 2y ago
printed/println debugging works if you wrote the code or have a good idea of where to go.
I frequently find myself debugging large unfamiliar code bases, and typically it’s much easier to stick a breakpoint in and start following where it goes rather than blindly start instrumenting with print statements and hoping that you picked the right code path.