develooper Front page | perl.perl5.porters | Postings from March 2007

Debugger "V" command broken

Thread Next
From:
andreas.koenig.7os6VVqR
Date:
March 5, 2007 18:02
Subject:
Debugger "V" command broken
Message ID:
87lkibdt9g.fsf@k75.linux.bogus
Current blead has the "V" command broken.

    % /home/src/perl/repoperls/installed-perls
    /perl/p*/perl-5*@30481/bin/perl -de0

    Loading DB routines from perl5db.pl version 1.29
    Editor support available.

    Enter h or `h h' for help, or `man perldebug' for more help.

    main::(-e:1):   0

      DB<1> V
    $/ = '  
    '
    FileHandle(stderr) => fileno(2)
    [...]
    Can't locate object method "FIRSTKEY" via package "re::Tie::Hash::NamedCapture" at /home/src/perl/repoperls/installed-perls/perl/plYvZEs/perl-5.8.0@30481/lib/5.9.5/dumpvar.pl line 380.
            ...propagated at /home/src/perl/repoperls/installed-perls/perl/plYvZEs/perl-5.8.0@30481/lib/5.9.5/perl5db.pl line 2433.
     at /home/src/perl/repoperls/installed-perls/perl/plYvZEs/perl-5.8.0@30481/lib/5.9.5/perl5db.pl line 2433
            DB::DB called at -e line 1
    Debugged program terminated.  Use q to quit or R to restart,
      use o inhibit_exit to avoid stopping after program termination,
      h q, h R or h o to get additional info.
    DB<1>       


The first solution that came to my mind was to load the missing module
on demand. There are certainly many more solutions to this problem.

--- /home/src/perl/repoperls/installed-perls/perl/plYvZEs/perl-5.8.0@30481/lib/5.9.5/perl5db.pl	2007-03-06 01:33:27.000000000 +0100
+++ perl5db.pl	2007-03-06 02:54:38.000000000 +0100
@@ -2416,8 +2416,9 @@
                         local $doret = -2;
 
                         # must detect sigpipe failures  - not catching
-                        # then will cause the debugger to die.
+                        # them will cause the debugger to die.
                         eval {
+                            require re::Tie::Hash::NamedCapture;
                             &main::dumpvar(
                                 $packname,
                                 defined $option{dumpDepth}


-- 
andreas

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About