Re:Ask HN: How often do you use a debugger?
by shane-armstrong on Wednesday May 23, 2012 @10:56AM
(#4013326)
The javascript console on -webkit (Chrome)is a godsend for me, because if you have a JQuery bug, nothing at all works, so instead of being able to do one large update you have to do it in small ones, or spend ages debugging.
Of course, you could just write correct code, but no one is perfect and mistakes do happen. Would be better if the errors it found were displayed in a more clear form of english instead of generic error names, but it is better than looking over line after line trying to find that darn missing semi-colon.
On the server side, print and vardump statements will provide the developer the desired information in a one-second refresh of the browser. A debugger will need to be run on an independent server instance which can take time to configure and start up. If the development environment is not already set up for this, running a debugger can take longer than identifying and fixing the bug using print statements.