I wanted to know if the HN community uses a debugger during development.
I have this feeling that developers who create native apps use it a lot. But web developers don't, from what I see, most of web dev use print/echos/var_dumps and so on.
Why aren't we all using debuggers ?
Python/Django: never. I don't think I've ever used a debugger here. I tend to write unit tests instead.
Ruby/Rails: same as Python, never. Unit tests all the way.
JavaScript/CoffeeScript: occasionally (once a week?). Usually in chunks of code that are hard to test (DOM manipulation, generally). Usually use Jasmine and write a unit test, especially if it's a logic-related problem.
C#: I've been working on a legacy codebase written in C#, and I tend to use the debugger quite liberally here. When I got there, the codebase was around 36kloc with 0 unit tests and many global variables. Most of the code was not written with testing in mind.
Java: Not often. It's been a while, but most of my Java projects were greenfield projects, so they were written with a JUnit suite from the ground up.
Objective-C: Occasionally. The last project I worked on was using Cocos2D and network stuff. Neither was particularly easy to write tests for, so the debugger was useful for inspecting state when things got weird. More often, I would add a few NSLog statements instead, to capture long-running state changes so that I could reconstruct a model of what went wrong and when.