|
Home > Archive > Unix administration > June 2005 > How do I set a cgi script in debug mode
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How do I set a cgi script in debug mode
|
|
| kaka.hui@gmail.com 2005-06-22, 8:49 pm |
| I have installed the Bugzilla 2.18 with GD installed. The report.cgi
results a broken image when trying to retrieve a graphical report.
So, I am thinking about to run the report.cgi / query.cgi in debug
mode.
Question: What's the syntax in putting a cgi script in debug mode?
Thanks!
| |
| Dave Hinz 2005-06-22, 8:49 pm |
| On 22 Jun 2005 17:15:01 -0700, kaka.hui@gmail.com <kaka.hui@gmail.com> wrote:
> I have installed the Bugzilla 2.18 with GD installed. The report.cgi
> results a broken image when trying to retrieve a graphical report.
> So, I am thinking about to run the report.cgi / query.cgi in debug
> mode.
Wouldn't it be easier to do a view source of the HTML that the cgi
outputs, and see what the path is to the image it can't find? Then, fix
your CGI to match the path where it's at, or fix where it's at to match
the path in the CGI.
> Question: What's the syntax in putting a cgi script in debug mode?
What color is paint? It depends on too many things. Fix the problem
directly. Find out where your script is looking & make it look at where
the images are, one way or the other.
Dave Hinz
| |
| Frater Mus 2005-06-23, 7:51 am |
| On 2005-06-23, <kaka.hui@gmail.com> wrote:
> I have installed the Bugzilla 2.18 with GD installed. The report.cgi
> results a broken image when trying to retrieve a graphical report.
>
> So, I am thinking about to run the report.cgi / query.cgi in debug
> mode.
>
> Question: What's the syntax in putting a cgi script in debug mode?
IIRC, maybe CGI::Carp::fatalsToBrowser would help in this situation.
--
http://cbsrmt.mousetrap.net/RMTdb/ CBS Radio Mystery Theater database
http://greyhound.mousetrap.net/altus/ Altus, retired racer
John McCain 2008 + http://en.wikipedia.org/wiki/Instant-runoff_voting
|
|
|
|
|