Just another Perl shrine | |
PerlMonks |
Re: How to perldebug a Term::ReadLine application (the other way round)by LanX (Saint) |
on Dec 01, 2014 at 16:21 UTC ( [id://1108844]=note: print w/replies, xml ) | Need Help?? |
Another ... maybe saner way ... to do it is to attach the application explicitely to another TTY. Ideally a module could sense if it's run within the debugger and automatically set the TTY. For instance xterm -e perl -e 'print `tty`;sleep' will show the TTY of this terminal ( /dev/pts/5 in this case) and sleep indefintely to not disturb the TTY output. the following script hardcodes that TTY into TRL:
I have problems to figure out a nice way to automize it. Ideally I'd get the TTY of the spawned xterm returned. The only thing I figured out at the moment is to look into the proces table
Cheers Rolf (addicted to the Perl Programming Language and ☆☆☆☆ :)
In Section
Cool Uses for Perl
|
|