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

Print Statements, basically a form of logging, can be superior to debuggers, too (especially "when they're usable" :-) )

IMO, all three: logging, printing and the debugger have their place. In theory, print statements could be 100% replaced by debugger macros or dtrace, but the tooling just is better (it is easier to keep your output the same across runs) for a class of "takes a couple of days to find" bugs.



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

Search: