r/programming • • Feb 21 '13

Embedded print Statements != Debugging: Conflation of two concepts — true debugging and dumping variables to the console — encourages poor programming practices and harms codebases

http://www.drdobbs.com/architecture-and-design/embedded-print-statements-debugging/240148855
0 Upvotes

1 comment sorted by

1

u/grayvedigga Feb 21 '13

What he says rings true in many ways, but I haven't had a debugger fit as smoothly into my workflow in any language since Turbo Pascal.

I rationalise my continued use of printf-style instrumentation as a debugging tool (with a suite of small helper libraries to avoid some of the issues discussed) (also note semantic shift) by the claim that code which can be instrumented effectively in this manner tends to have cleaner interfaces and be more robust.

While the OP's obviously contentious - even going by the early voting trail alone - I think there's a useful conversation here.