in reply to Re: Flat File Database & GD::Graph (REVISITED)
in thread Flat File Database & GD::Graph (REVISITED)

I can't take the time to install GD::Graph right now and test this, but here are some friendly thoughts as to how to effeciently go about debugging your code -- and ask for help when something goes wrong.

You say the script doesn't work, but don't explain what you mean. Does it crap out with a 500 Internal Server Error? Does it die at a particular line? Does it not produce the results you expect, or nothing at all? The more specific you can be about what you've done and what's going wrong, the more useful responses you'll get.

I would start by trying to trim the problem down to the smallest possible scope, create a test case that works, and build up from there. Debugging CGI is generally a hassle; can you (temporarily) throw away the CGI part and just try generating the image from the command line? Can you try to generate the simplest possible chart from your data set (leaving out all the legends and other information)? Can you construct an artificial data set with constrained data?

Once you have a working core, you can incrementally add back features until something breaks, and you will know that whtever change you last made is the one that's causing the problem.

  • Comment on Re: Re: Flat File Database & GD::Graph (REVISITED)

Replies are listed 'Best First'.
Re: Re: Re: Flat File Database & GD::Graph (REVISITED)
by suggus (Sexton) on Mar 19, 2002 at 18:56 UTC
    seattlejohn,
    I'm sorry I failed to note what my errors were (too much coffee is a bad thing you know :P). I did, perform all of my debugging techniques (including the ones you mentioned before asking my fellow monks for assistance). Thanks for your advice though.
    I'm always learning. http://www.zen-designs.com