[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LSMB through the perl debugger.



There are a few options for debugging the software, and some of them
require more knowledge of the code than others.

The first option  (requiring less knowledge) is to use the following
information to pull state info in the CGI app:
1)  print STDERR
2)  $form->debug
3) $form->error

The second option is to actually create a script that can run in a
debugger.  This requires more knowledge of the inputs than you might
otherwise want to start with and it requires creating a wrapper script
to simulate the CGI input.  You could probably (in 1.2) do this by
passing the arg string to the script.

For example:
perl -d ct.pl "type=customer&action=add"

If you are using Firefox and have the webdeveloper plugin, you can
convert POST to GET methods and take the arg strings this way.

Hope this helps,
Chris Travers