Where can I see the Debug info from Net::FTP
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
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
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
Yes you're right,
No one seemed to be able to answer that question, but they did anwser it here.