Re: How to read perl-cgi-crash-outputs WITHOUT telnet access ?



Patricia Mindanao wrote:
How can I get the information about what went worng with a certain cgi-script otherwise

use CGI::Carp qw{ carpout fatalsToBrowser warningsToBrowser };

will show you runtime error messages and warnings in your browser
window.

However, it will not show compile-time errors. The script needs to
compile and run for CGI::Carp to do anything. If the script cannot
compile (for example, if you forgot to close a parenthesis) then Carp
won't help you.

Imagine I entered in the HTML page a wrong path to the perl cgi script.

You cannot run a script unless you run it. If your path is wrong the
script cannot run. If the script cannot run then it cannot give you any
debugging info.

FWIW, you should ask your admin to give you HTML access to your
server's error logs. You can look at error logs in a browser without
needing to use telnet.

--
David Filmer (http://DavidFilmer.com)

.



Relevant Pages