Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

RE: Easy, elemental, but cool debug trick.

by KM (Priest)
on May 24, 2000 at 21:23 UTC ( [id://14607]=note: print w/replies, xml ) Need Help??


in reply to Easy, elemental, but cool debug trick.

I usually do what you showed above. Sometimes I do:

sub DEBUG () { 1 }

If I have many statements in there doing ... if $DEBUG.

I also use perl -c, the debugger, and whenever I am doing CGI I like to use CGI::Carp qw(fatalsToBrowser). I also use -T, but that isn't really a debugging thing.

Cheers,
KM

  • Comment on RE: Easy, elemental, but cool debug trick.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://14607]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-24 03:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found