Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 examining the Monastery: (9)
As of 2015-07-06 07:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls