Return-Path: Delivered-To: apmail-perl-embperl-archive@www.apache.org Received: (qmail 58442 invoked from network); 6 Aug 2008 14:47:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Aug 2008 14:47:36 -0000 Received: (qmail 69303 invoked by uid 500); 6 Aug 2008 14:47:36 -0000 Delivered-To: apmail-perl-embperl-archive@perl.apache.org Received: (qmail 69118 invoked by uid 500); 6 Aug 2008 14:47:34 -0000 Mailing-List: contact embperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list embperl@perl.apache.org Received: (qmail 69106 invoked by uid 99); 6 Aug 2008 14:47:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Aug 2008 07:47:34 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of neil@nilspace.com designates 67.106.77.164 as permitted sender) Received: from [67.106.77.164] (HELO mail.nilspace.com) (67.106.77.164) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Aug 2008 14:46:37 +0000 Received: from [192.168.1.100] (71-11-157-37.dhcp.stls.mo.charter.com [71.11.157.37]) (authenticated bits=0) by mail.nilspace.com (8.14.3/8.14.3/Debian-5) with ESMTP id m76EkxjV014121 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 6 Aug 2008 09:47:02 -0500 Message-ID: <4899B963.3040208@nilspace.com> Date: Wed, 06 Aug 2008 09:46:59 -0500 From: Neil Gunton User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.16) Gecko/20080702 Iceape/1.1.11 (Debian-1.1.11-1) MIME-Version: 1.0 To: embperl@perl.apache.org Subject: Error line numbers do not seem to map correctly to source code Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I am seeing errors in my apache logs which appear to be within Embperl code, and yet the error line numbers do not match up with what is in the code. For example, I might see Can't call method "prepare" on an undefined value at line 182 in Docs.epl But at line 182, that is in the middle of the qq{} for preparing a query - i.e. it's not calling prepare at that line. It's true there is a prepare statement nearby, but then again I have prepare statements peppered throughout my code. It doesn't seem to be a simple "off by one" error. Has anybody else seen this kind of problem? It's not always wrong - sometimes I can see that the line has a call to the function mentioned in the error. Other times it seems to be referring to the preceding line. But other times, like in the first example, it just seems to be pointing to the middle of a multiline qq{} (i.e. text). This is with latest Embperl 2.3, built from tarball. Thanks, Neil --------------------------------------------------------------------- To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org For additional commands, e-mail: embperl-help@perl.apache.org