vifo has asked for the wisdom of the Perl Monks concerning the following question:

Dear monks, recently, I'm running into trouble, while trying to run debug Perl under Eclipse / EPIC / Win32. I'm getting the following error message:
Use of uninitialized value in subroutine dereference at (null) line 1. perl5db.pl did not return a true value. BEGIN failed--compilation aborted.
Google yielded nothing specific so far, and I am searching for advice, where to look next. The problem seems to be the same under ActiveState Perl 5.10.1 and Strawberry Perl 5.10.1. However, I can run the perl debugger manually with perl -d (though I am getting some warnings, which should be fine):
EPIC: 0.6.35 Eclipse: 3.5.1 PadWalker: 1.9 E:\Perl\TEST>perl -d test1.pl Loading DB routines from perl5db.pl version 1.32 Editor support available. Enter h or `h h' for help, or `perldoc perldebug' for more help. main::(test1.pl:3): my $h1 = "hello world\n"; SetConsoleMode failed, LastError=|6| at C:/Strawberry/perl/site/lib/Te +rm/ReadKey.pm line 265. at C:/Strawberry/perl/site/lib/Term/ReadLine/readline.pm line 1581 readline::readline(' DB<1> ') called at C:/Strawberry/perl/si +te/lib/Term/ReadLine/Perl.pm line 11 Term::ReadLine::Perl::readline('Term::ReadLine::Perl=ARRAY(0xb +0c2d4)', ' DB<1> ') called at C:/Strawberry/perl/ lib/perl5db.pl line 6499 DB::readline(' DB<1> ') called at C:/Strawberry/perl/lib/perl +5db.pl line 2237 DB::DB called at test1.pl line 3 DB<1>
Diagnostics:
E:\>perl -V Summary of my perl5 (revision 5 version 10 subversion 1) configuration +: Platform: osname=MSWin32, osvers=5.1, archname=MSWin32-x86-multi-thread uname='Win32 strawberryperl 5.10.1.0 #1 30 i386' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=und +ef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags =' -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DUSE_SITEC +USTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_S YS -fno-strict-aliasing -DPERL_MSVCRT_READFIX', optimize='-s -O2', cppflags='-DWIN32' ccversion='', gccversion='3.4.5', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='long lo +ng', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='g++', ldflags ='-s -L"C:\strawberry\perl\lib\CORE" -L"C:\straw +berry\c\lib"' libpth=C:\strawberry\c\lib libs= -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 + -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi3 2 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 perllibs= -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomd +lg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnet api32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 libc=, so=dll, useshrplib=true, libperl=libperl510.a gnulibc_version='' Dynamic Linking: dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-mdll -s -L"C:\strawberry\perl\lib\CORE +" -L"C:\strawberry\c\lib"' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS PERL_MALLOC_WRAP PL_OP_SLAB_ALLOC USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_SITECUSTOMIZE Built under MSWin32 Compiled at Oct 21 2009 13:54:15 @INC: C:/Strawberry/perl/lib C:/Strawberry/perl/site/lib C:\strawberry\perl\vendor\lib .
Thanks in advance, vifo
  • Comment on Eclipse / EPIC / Win32, Debugger Problems / perl5db.pl did not return a true value, Perl 5.10.1
  • Select or Download Code

Replies are listed 'Best First'.
Re: Eclipse / EPIC / Win32, Debugger Problems / perl5db.pl did not return a true value, Perl 5.10.1
by Anonymous Monk on Feb 01, 2010 at 11:41 UTC
      Thanks for your reply. I reinstalled the PadWalker PPD, but the problem remains the same. I also tried the following PPDs, with no effort yet:
      http://ppm4.activestate.com/MSWin32-x86/5.10/1006/R/RO/ROBIN/PadWalker +-1.7.ppd http://ppm4.activestate.com/MSWin32-x86/5.10/1006/R/RO/ROBIN/PadWalker +-1.9.ppd (this one should have fixed the problem) http://www.bribes.org/perl/ppm/PadWalker.ppd
      Regards, vifo
        Perl 5.10.1 introduced a one-line change in Cwd.pm that broke debugging on Windows which may be the same issue you're having, see: https://rt.cpan.org/Public/Bug/Display.html?id=56225
        You should file a bug report ;)