3 ms·
I only use a debugger when it's well integrated with my IDE/editor, which is, uh, almost every case there days. I think debugger vs print is more an ergonomic
by raincole 3y ago
I only use a debugger when it's well integrated with my IDE/editor, which is, uh, almost every case there days.
I think debugger vs print is more an ergonomic problem. Yes I can write print and if/else instead of using debugger and conditional breakpoint... but it's often much slower, and I need to be careful to not commit them into production code.
> Doing “something else” means (1) rethinking your code so that it is easier to maintain or less buggy (2) adding smarter tests so that, in the future, bugs are readily identified effortlessly.
I fail to see how debugger prevents me from doing this. To me it's mostly a different way to print/if. It would be very weird if using print prevents me from writing maintainable code.