Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Neat Debugger tricks

by osunderdog (Deacon)
on Nov 17, 2005 at 12:59 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://509389]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-03-29 01:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found