Where can I see the Debug info from Net::FTP
boboson
created: 2006-04-03 16:31:15
I am using Net::FTP in a webproject but I can only get it to connect occasionally. Therefore, I need to be able to see the debug information, but I don't know how?
Can anyone enlighten me?
I am using CGI::Application with HTML::Template for outputting.
Re: Where can I see the Debug info from Net::FTP
created: 2006-04-03 16:48:02
Do you have the debug attribute of [cpan://Net::FTP] on?
my $ftp = Net::FTP->new("some.host.name", Debug => 1);
Or are you asking where does the STDERR stuff go? If the latter, you'll need to find your web server's error_log, which will depend entirely on your (or your ISP's) setup.
Re: Where can I see the Debug info from Net::FTP
created: 2006-04-03 19:38:48
It should show up in the HTTP error log, if you have access to that.

You can probably redirect it to the Web page you're looking at with something like:

open(STDERR,'>&STDOUT');
but I haven't tested it.
Re: Where can I see the Debug info from Net::FTP
created: 2006-04-04 04:30:22
boboson,

Is this question not the same as Print debug information from Net::FTP, with less information?

Martin
Re: Where can I see the Debug info from Net::FTP
created: 2006-04-04 05:49:29
Yes you're right,
No one seemed to be able to answer that question, but they did anwser it here.

perlmonks.org content © perlmonks.org and boboson, davidrw, marto, sgifford

prlmnks.org © 2006 edmund von der burg (eccles & toad)

v 0.03