in reply to Re: Rambling about debuggers
in thread Rambling about debuggers
Mine tend to end up looking like this:
print STDERR "Debug message\n" if $debug > 0;
Where the number may change, giving me several levels of debug statements, and $debug gets set by a command-line accumulating switch. I also tend to leave these in production code: Removing a debug statement is a change in code, and any change in code makes it possible to add a bug, after all.