▲ | marssaxman 6 days ago | ||||||||||||||||||||||
That's funny. I remember using interactive debuggers all the time back in the '90s, but it's been a long time since I've bothered. Logging, reading, and thinking is just... easier. | |||||||||||||||||||||||
▲ | TheRoque 6 days ago | parent | next [-] | ||||||||||||||||||||||
Really ? I find myself thinking the opposite. My program always runs in debug mode, and when there's some issue I put a breakpoint, trigger it, and boom I can check what is wrong. I don't need to stop the program, insert a new line to print what i _guess_ is wrong, restart the program from scratch etc. Properly debugging my stack is probably one of the first things I setup because I find it way less tedious. Like, for example, if you have an issue in a huge Object or Array, will you actually print all the content, paste it somewhere else and search through the logs ? And by the way, most debuggers also have ability to setup a log points anyways, without having to restart your program. Genuinely curious to know how writing extra lines and having to restart makes things easier. Of course I'm not saying that I never débug with logs, sometimes it's require or even more efficient, but it's often my second choice. | |||||||||||||||||||||||
| |||||||||||||||||||||||
▲ | globular-toast 5 days ago | parent | prev [-] | ||||||||||||||||||||||
Yeah, I remember learning to use gdb when I was beginning in the early 2000s. I totally thought I was "levelling up" as a programmer and to be honest felt kinda badass with all those windows open in Emacs. But I've found that the number of times I actually resorted to using the debugger has been so small I don't remain fluent in it's use. What am I supposed to do? Write more bugs? On the other hand, I'm always ready to read, think and put in some print/log statements. |