[32836] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 4101 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Dec 26 11:09:32 2013

Date: Thu, 26 Dec 2013 08:09:02 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Thu, 26 Dec 2013     Volume: 11 Number: 4101

Today's topics:
        How does the perl debugger find the source lines <hjp-usenet3@hjp.at>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Thu, 26 Dec 2013 15:09:16 +0100
From: "Peter J. Holzer" <hjp-usenet3@hjp.at>
Subject: How does the perl debugger find the source lines
Message-Id: <slrnlboe4c.ka4.hjp-usenet3@hrunkner.hjp.at>

I'm currently writing a plugin for qpsmtpd, which means that both the
plugin and the tests are read from a file, massaged a bit, compiled via
eval() and finally the test framework calls the test methods. 

This seems to confuse the debugger a bit, because it looks like this:

| Qpsmtpd::Plugin::run_tests(/home/hjp/wrk/qpsmtpd/t/Test/Qpsmtpd/Plugin.pm:36):
| 36:             $plugin->$method();
|   DB<2> s
| Qpsmtpd::Plugin::no_bcc::pass1(t/plugin_tests/no_bcc:9):
| 9:
|   DB<2> n
| Qpsmtpd::Plugin::no_bcc::pass1(t/plugin_tests/no_bcc:11):
| 11:
|   DB<2> n
| Qpsmtpd::Plugin::no_bcc::pass1(t/plugin_tests/no_bcc:12):
| 12:
|   DB<2>

The interesting thing is that it shows the correct source file
("t/plugin_tests/no_bcc") and the correct line numbers (9, 11, 12), but
not the contents of the lines, which look like this:

  9     my ($self) = @_;
 10 
 11     my $qp = $self->qp;
 12     $qp->command("rset");

So, if the debugger knows the file and the line, why can't it display
the content?

	hp

-- 
   _  | Peter J. Holzer    | Fluch der elektronischen Textverarbeitung:
|_|_) |                    | Man feilt solange an seinen Text um, bis
| |   | hjp@hjp.at         | die Satzbestandteile des Satzes nicht mehr
__/   | http://www.hjp.at/ | zusammenpaßt. -- Ralph Babel


------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

Back issues are available via anonymous ftp from
ftp://cil-www.oce.orst.edu/pub/perl/old-digests. 

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V11 Issue 4101
***************************************


home help back first fref pref prev next nref lref last post