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:
parse_options("TTY=/dev/ttyp3 LineInfo=/dev/ttyp4 ReadLine=1");
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.