On Tue, 07 Dec 2010 10:33:08 -0800, Jonathan Pool wrote: >> Every CGI program should be testable from the command line. But if >> that doesn't work, there is a way to remotely invoke the debugger in >> this situation. http:// >> www.foo.be/docs/tpj/issues/vol4_3/tpj0403-0008.html . > > Thanks. The applicability of this approach is unclear to me. The > document says "The ptkdb window will appear". But this script is being > run by httpd to generate a reply to a request from a web browser's form > submission. I don't understand where a window could appear.
On whatever workstation you designate through the DISPLAY environment variable. You have to have a basic understanding of X Windows and its client/server model to make this work. > As for the command line, yes, but I would be simulating a > multipart/form-data http form submission with a file-upload part and > hoping that Perl is seeing the same thing. True, it won't be easy, but if you can come up with a test for whatever bug you are experiencing, it will be invaluable for saving time later. -- Peter Scott http://www.perlmedic.com/ http://www.perldebugged.com/ http://www.informit.com/store/product.aspx?isbn=0137001274 http://www.oreillyschool.com/courses/perl3/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/