Beefy Boxes and Bandwidth Generously Provided by pair Networks
RobOMonk laziness, impatience, and hubris  Re^3: I usually debug
via...  by bunnyman (Hermit) on Feb 15, 2005 at 16:00 UTC
( #431238=note: print w/ replies, xml ) Need Help??  in reply to
Re^2: I usually debug via... in thread I usually debug via...
comment them out when I don't need them  Have you considered
trying something like  warn "The code is running in debug" if
$::debugging;  This way you can just say $debugging = 1; instead
of changing many lines of code. vim is a great tool, but it
isn't a debugger. For debugging, you need emacs. :-)  Update:
You could even have $::debugging set by command-line switches,
or an %ENV variable or a CGI parameter. Then you would not need
to change any of the code to get some debugging info. This is
great if something prevents you from touching the code, for
example if it is running on a production web server.  Comment on
Re^3: I usually debug via... Select or Download Code Re^4: I
usually debug via... by f