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.
In reply to Re^2: Rambling about debuggers
by DStaal
in thread Rambling about debuggers
by zek152
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |