Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

RE: RE: debugging

by Adam (Vicar)
on Aug 29, 2000 at 19:36 UTC ( #30153=note: print w/replies, xml ) Need Help??

in reply to RE: debugging
in thread debugging

The line:
print DEBUGOUT "\$var=$var\n" if DEBUGGING
Shows up all over my scripts. If I declare DEBUGGING as a constant the branches get compiled out, and I can choose to log the debug data for later or direct it to STDERR or STDOUT. I havn't done it yet, but I've been thinking about using btrott's Filehandle Filter to do even more with the DEBUGOUT filehandle. Oh, and is very useful too. Its rare that this technique doesn't provide me enough info and I have to resort to the debugger. But its nice to know that the debugger is there when I need it.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://30153]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2018-03-24 08:26 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (297 votes). Check out past polls.