SHARE
Facebook X Pinterest WhatsApp

Hey, Don’t Dump. Debug!

Written By
thumbnail
Web Webster
Web Webster
May 1, 2009

“Out of curiosity, I also ask other coders about debugging
techniques, and more often than not, I am surprised by the answer.
Believe it or not, the vast majority relies on liberal “print”
statements sprinkled throughout code. Of course, “print” takes many
forms–dump pertinent data structures, emit trace statements to
standard error, and log interim results in a separate file–and
there are cases where these methods are mandated. Still, it puzzles
me why more skilled developers do not use a debugger. Extensions to
PHP allow for interactive forensics; Perl running within mod_perl
supports debugging; and Ruby on Rails’s Mongrel provides the
-debugger option to interrupt execution and drop to a debug
console. “In my Rails work, I use the debugger extensively. The
debugger combines the power of the Rails console and the
Interactive Ruby Debugger, irb, and peers into running code
responding to incoming requests. Better yet, I can yield to the
debugger console anywhere–in a controller, a view, a plug-in or
helper. Within the debugger, I can inspect the stack, variables,
the params hash, and more.

Complete
Story

thumbnail
Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Recommended for you...

5 Best Free and Open Source Text Expander Tools
webmaster
Jun 13, 2025
Grafito: Systemd Journal Log Viewer with a Beautiful Web UI
Bobby Borisov
Jun 12, 2025
FreeBSD Wants to Know a Few Things
brideoflinux
May 11, 2025
NVK enabled for Maxwell, Pascal, and Volta GPUs
Kara Bembridge
May 1, 2025
Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.