On 7/12/06, Gavin Bowlby <[EMAIL PROTECTED]> wrote:
I would like to see the results of the Perl debugging session in a file.
The debugger wasn't made with that in mind, but you could work around it. At least, this works for me. open $DB::OUT, "| tee dbug.txt" or die if $DB::OUT; You may find some escape sequences in the output. Some would call that a feature. If using that line early in your code (or as a debugger command) isn't soon enough to catch what you need, you could wrap it in a BEGIN block. If the BEGIN block doesn't make it execute soon enough, you can hack a copy of perl5db.pl to start the tee as the debugger starts up; see the perldebug manpage. Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>