Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Neat Debugger tricks

by osunderdog (Deacon)
on Nov 17, 2005 at 12:59 UTC ( #509389=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # ...
    107    sub foo {
    ...
    110 =>     die "invalid x!" unless $x == 42;
    111        print "Yay!"
    112        # ...
    
  2. or download this
    DB<6> $x = 43;
    
  3. or download this
    use strict;
    
    ...
    foo();
    
    sub foo { my  $x; $x = 43; if($x==42){print "DANGER Will  Robinson!\n"
    +}else{print "Yay!\n";}}
    
  4. or download this
    main::(perldebugexample2.pl:3): foo();
      DB<1> n
    ...
    
      DB<2> n
    DANGER Will  Robinson!
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2014-07-11 09:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (224 votes), past polls