I am using a web form I created as an interface to query a MySQL database. I have written some perl CGI scripts to process the queries. But I am not getting the desired output, so I need to debug the scripts. How do I do that? I mostly use Eclipse for debugging perl, but now I have the web form parameters (checkboxes, listboxes) as input to the script. Is there any way I can pass in the inputs from the web page and then debug the script in Eclipse? Or is there any other way of debugging in this case? Hope I have made myself clear. Thanks.
Yes, of course you can use Apaches error log to do debugging; which a very lazy but efficient way to work.
You mention you use Eclipse so I assume you also use the EPIC plug-in for Perl development. Check out this chapter on how to configure Eclipse/EPIC for debugging CGI: