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

Debugger "V" command broken

Thread Next
March 5, 2007 18:02
Debugger "V" command broken
Message ID:
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 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/ line 380.
            ...propagated at /home/src/perl/repoperls/installed-perls/perl/plYvZEs/perl-5.8.0@30481/lib/5.9.5/ line 2433.
     at /home/src/perl/repoperls/installed-perls/perl/plYvZEs/perl-5.8.0@30481/lib/5.9.5/ 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.

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/	2007-03-06 01:33:27.000000000 +0100
+++	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;
                                 defined $option{dumpDepth}


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About