Re: Strategy for diagnosing context-sensitive bug

2010-12-13 Thread Jenda Krynicky
From: Rob Dixon > On 07/12/2010 09:24, Jonathan Pool wrote: > > The current script where the error occurs is at > > > > http://panlex.svn.sourceforge.net/viewvc/panlex/perl/plxu.cgi?revision=27&view=markup > > > > The error occurs at line 1297. > > So the line in question is > >@res = (split

Re: Strategy for diagnosing context-sensitive bug

2010-12-07 Thread Jonathan Pool
>> I don't understand where a window could appear. > > On whatever workstation you designate through the DISPLAY environment > variable. Aha. Thanks. > if you can come up with a test for whatever > bug you are experiencing, it will be invaluable for saving time later. Given the ease with whic

Re: Strategy for diagnosing context-sensitive bug

2010-12-07 Thread Peter Scott
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. Th

Re: Strategy for diagnosing context-sensitive bug

2010-12-07 Thread Jonathan Pool
Thanks much for your various suggestions. > recommend removing the ampersand from the function call: it is bad practice > in anything but very old Perl. Thanks. That deprecation hasn't made it into "man perlsub" yet, except for when one is using prototyping. > I would also prefer to lose a few

Re: Strategy for diagnosing context-sensitive bug

2010-12-07 Thread Peter Scott
On Tue, 07 Dec 2010 01:24:57 -0800, Jonathan Pool wrote: >> Are you familiar with the perl debugger? > > Thanks much for your reply. I haven't used the debugger, partly because > its documentation describes it as an interactive tool and it's not clear > to me how that works in my context. The scri

Re: Strategy for diagnosing context-sensitive bug

2010-12-07 Thread Rob Coops
On Tue, Dec 7, 2010 at 2:21 PM, Rob Dixon wrote: > On 07/12/2010 09:24, Jonathan Pool wrote: > >> >> Are you familiar with the perl debugger? >>> >> >> Thanks much for your reply. I haven't used the debugger, partly >> because its documentation describes it as an interactive tool and >> it's not

Re: Strategy for diagnosing context-sensitive bug

2010-12-07 Thread Rob Dixon
On 07/12/2010 09:24, Jonathan Pool wrote: Are you familiar with the perl debugger? Thanks much for your reply. I haven't used the debugger, partly because its documentation describes it as an interactive tool and it's not clear to me how that works in my context. The script is executed by htt

Re: Strategy for diagnosing context-sensitive bug

2010-12-07 Thread Jonathan Pool
> Are you familiar with the perl debugger? Thanks much for your reply. I haven't used the debugger, partly because its documentation describes it as an interactive tool and it's not clear to me how that works in my context. The script is executed by httpd in response to a browser form submissio

Re: Strategy for diagnosing context-sensitive bug

2010-12-04 Thread Rob Dixon
On 04/12/2010 07:12, Jonathan Pool wrote: I'm seeking a strategy for diagnosing a bug that seems difficult to reduce to a simple reproducible case. The bug is that a hash element apparently becomes undef. When used as an argument to "split" or "index", it generates a "Use of uninitialized value