Hacker News new | past | comments | ask | show | jobs | submit login

> Until you get used to the debugger, you will ask yourself this question.

As a counterpoint to this, I was pretty much exclusively a debugger guy for the first 10-12 years of my career. Now I'm pretty much exclusively a logging kind of guy. Familiarity with a debugger has nothing to do with it.

> Console logging is bad for recursive functions, loops, huge variables, etc.

And debuggers are bad for focus/blur event handlers in UI code because they change the focus state of the thing you're trying to debug.

Ultimately, neither of them is perfect, not all problems are alike, one is not an objectively better tool than the other. They both have merits.




I'm sorta middle of the road.

I have a strong preference for having a debugger so I can set break points and testing assumptions in a REPL at that point in the code though.

I'd say it's pretty much required to do PHP (and especially Wordpress).

On that note, WP Core team, would it kill you to extend some basic array functions to WP_Query objects?


I think the print/logging tactic get a little bit of a bad-reputation mainly because of the minority out there who do it because it's the only approach they know how to take.




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

Search: