in reply to Re^2: How do I get output from the perl debugger (perl -d) into a text file?
in thread How do I get output from the perl debugger (perl -d) into a text file?

I'd recommend the unix 'script' command, but be warned -- it will also save control characters, which makes for some interesting reading if you try to pop it open in your favorite text editor.

You can clean up a script file using the unix command 'col'.

You can also use logging in your terminal program (tf or similar, if your current terminal doesn't support that function) or use something like 'screen'.

Update: For those who aren't aware, windows users can make use of unix commands via programs like cygwin. Another useful command.com replacement is 4DOS and its siblings.

  • Comment on Re^3: How do I get output from the perl debugger (perl -d) into a text file?

Replies are listed 'Best First'.
Re^4: How do I get output from the perl debugger (perl -d) into a text file? (DB::OUT)
by tye (Sage) on Aug 01, 2005 at 13:55 UTC
    open DB::OUT, ">&STDOUT"

    Do that after you've started the debugger (piped through tee) but before you've done anything too insteresting.

    - tye