Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: PerlDebug and mysterious Term::Rendezvous

by dominix (Deacon)
on Jan 30, 2004 at 08:50 UTC ( #325171=note: print w/replies, xml ) Need Help??


in reply to Re: PerlDebug and mysterious Term::Rendezvous
in thread PerlDebug and mysterious Term::Rendezvous

Thanks, but I already tried that, and that not what I want.
I was expecting for a control of the debugger from another tty while normal program display append on the original tty. is THAT possible ?
--
dominix
  • Comment on Re: Re: PerlDebug and mysterious Term::Rendezvous

Replies are listed 'Best First'.
Re: Re: Re: PerlDebug and mysterious Term::Rendezvous
by neuroball (Pilgrim) on Jan 30, 2004 at 17:05 UTC

    Hm... I think so. I just had to do some research to find out how to overcome the terminal from taking over the input/output of the debugger.

    You have to do the following:

    • Figure out what your debug options will be and either write the options to the .perldb file or add it to the PERLDB_OPTS environment variable like so:
      • .perldb
        parse_options("TTY=/dev/ttyp3 LineInfo=/dev/ttyp4 ReadLine=1");
      • terminal
        PERLDB_OPTS="TTY=/dev/ttyp3 LineInfo=/dev/ttyp4 ReadLine=1" perl -d your_script.pl
    • TTY is the terminal you want to debug in.
    • LineInfo is the terminal you want to see the output of your script in
    • ReadLine signals that you want to step through your script
    • Though for the whole thing to work you have to send the terminal you want to debug in to sleep before you start to debug. I.e. Go to ttyp3 and give it a command of sleep 1000000.

    /oliver/

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2022-05-18 00:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (68 votes). Check out past polls.

    Notices?