perl-asp mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maurice Aubrey <>
Subject Re: Apache::ASP and debugging with Apache::DB
Date Mon, 25 Feb 2002 23:03:07 GMT
On Mon, Feb 25, 2002 at 01:33:58PM -0800, Joshua Chamas wrote:
> Maurice Aubrey wrote:
> > The quick fix is to remove the line numbering stuff.
> > The real fix is to make it configurable and maybe just honor the
> > $Apache::Registry::MarkLine value.
> I could make Apache::ASP honor the Apache::Registry::MarkLine value 
> for this purpose, but pretty soon now, I will be making the subroutines
> that are compiled named by MD5 checksums, so if one does a &Carp::confess,
> the stack will not yield anything meaningful when using Apache::DB.
> Would this be OK?  Might it be possible instead to have Apache::DB
> understand standard perl #line directives?

I don't know.  I think this is a general debugger issue and not
specific to Apache::DB.  Here's some test code that elicits the


my $s = <<EOF;
  package A;

#line 1 foofile
  sub foo {
    for (1..5) {
      print "Ni! \$_\n";

eval $s;
die $@ if $@;

my $subid = 'A::foo';

At least under perl 5.6.0, if I leave the #line directive in there
then the debugger doesn't display the statements when I enter foo();
if I remove it, everything works.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message