Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Debugging Perl scripts which use fork()

by dash2 (Hermit)
on Feb 28, 2003 at 14:49 UTC ( [id://239443] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    { 
    my $ttyno = 1;
    ...
        $DB::fork_TTY = "/dev/pts/" . $ttyno++;
    }
    }
    
  2. or download this
    use vars $ttyno;
    
    ...
    sub DB::get_fork_TTY {
        $DB::fork_TTY = "/dev/pts/" . $main::tty;
    }