On Sat, 18 Feb 2006 16:20:10 +0800, Ken Perl wrote:

> The "DB::OUT" filehandle is opened to /dev/tty, regardless of where
> STDOUT may be redirected to, so it's impossible to print the
> interactive debugging info into a file?
> I tried 'x @session >/tmp/data' in the debugger and didn't work.

Why don't you use the Unix 'script' command?

[EMAIL PROTECTED] ~]$ script
Script started, file is typescript
[EMAIL PROTECTED] ~]$ perl -de 0

Loading DB routines from perl5db.pl version 1.27
Editor support available.

Enter h or `h h' for help, or `man perldebug' for more help.

main::(-e:1):   0
  DB<1> x $INC[0]
0  '/usr/lib/perl5/5.8.5/i386-linux-thread-multi'
  DB<2> q
[EMAIL PROTECTED] ~]$ exit
exit
Script done, file is typescript
[EMAIL PROTECTED] ~]$ cat typescript 
Script started on Sat 18 Feb 2006 04:32:16 AM PST
[EMAIL PROTECTED] ~]$ perl -de 0

Loading DB routines from perl5db.pl version 1.27
Editor support available.

Enter h or `h h' for help, or `man perldebug' for more help.

main::(-e:1):   0
  DB<1> x $INC[0]
0  '/usr/lib/perl5/5.8.5/i386-linux-thread-multi'
  DB<2> q
[EMAIL PROTECTED] ~]$ exit
exit

Script done on Sat 18 Feb 2006 04:32:44 AM PST

-- 
Peter Scott
http://www.perlmedic.com/
http://www.perldebugged.com/


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to