Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Who? Who does say that? Freshman students who barely started coding?

Example from this thread: https://news.ycombinator.com/item?id=35098434



Do we know if that person is a freshman student who barely started coding?


There are many other experienced devs (me included) who simply don't see debuggers worth the effort in most cases. There are exceptions and every competent dev should know how to use one, but to me it is like using crutches - I run faster and better without them. I did use debuggers at the beginning though, a lot too. Then I learned to think about problems and to simplify design of the code, making debuggers much less useful.


I find it useful to run pdb when my program throws an exception. You can run your program with `python -m pdb -cc file.py args`, and it will leave you in a prompt when there's an exception or a breakpoint (eg the `breakpoint` statement). From there, you can evaluate expressions using local variables.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: