error starting remote debugging

Help
Peter
2006-12-11
2013-05-20
  • Peter

    Peter - 2006-12-11

    Hello everyone,

    trying to start a remote debugging sesseion I get the error on my windows machine:

    An internal error occured during: "Fetching children from debug target".

    I have started the start_epicDB.pl from my remote machine (AIX) and it seems to connect to the client correctly. When I use nestat -an I get the information that a connection has been established to the remote machine with ports 5000, 5001 and 5002.

    We run the latest version of the Debugger (0.5.24) in combination with Eclipse 3.1.

    Has anyone got an idea what we are doing wrong.

    Regards

    Peter

     
    • Jan Ploski

      Jan Ploski - 2006-12-11

      Can you send the stack trace from your error log (the log file is in $WORKSPACE/.metadata/.log)?

       
    • Peter

      Peter - 2006-12-12

      Hi Jan,

      here is the stack trace:

      !SESSION 2006-12-12 10:34:46.554 -----------------------------------------------
      eclipse.buildId=M20060921-0945
      java.version=1.4.2_10
      java.vendor=Sun Microsystems Inc.
      BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
      Command-line arguments:  -os win32 -ws win32 -arch x86

      !ENTRY org.eclipse.core.jobs 4 2 2006-12-12 10:35:49.683
      !MESSAGE An internal error occurred during: "Retrieving Children".
      !STACK 0
      java.lang.NullPointerException
          at org.epic.debug.varparser.TokenVarParser.readVars(TokenVarParser.java:169)
          at org.epic.debug.varparser.TokenVarParser.parseVars(TokenVarParser.java:37)
          at org.epic.debug.db.StackFrame.readTopFrameVars(StackFrame.java:386)
          at org.epic.debug.db.StackFrame.getVariables(StackFrame.java:208)
          at org.eclipse.debug.internal.ui.elements.adapters.StackFrameContentAdapter.getChildren(StackFrameContentAdapter.java:26)
          at org.eclipse.debug.internal.ui.viewers.provisional.AsynchronousContentAdapter.computeChildren(AsynchronousContentAdapter.java:105)
          at org.eclipse.debug.internal.ui.viewers.provisional.AsynchronousContentAdapter$1.run(AsynchronousContentAdapter.java:42)
          at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

      Peter

       
    • Jan Ploski

      Jan Ploski - 2006-12-12

      I committed some relevant fixes today. Please try again after upgrading to 0.5.25.

       
    • Peter

      Peter - 2006-12-15

      Hi Jan,

      with 0.5.25 I am able to start remote debugging. But now various other problems occur. First of all I can't trace any variables although the PadWalker module is installed on the machine. The second problem is, that I can't set any breakpoints. Unfortunately this applies to local debugging as well. I have tried with eclipse 3.1 and 3.2. I also have restarted eclipse with the -clean option. Any further idea?

      Peter

       
      • Jan Ploski

        Jan Ploski - 2006-12-15

        Regarding breakpoints, see if your problem is the same as this one:

        https://sourceforge.net/forum/forum.php?thread_id=1631894&forum_id=258688

        Regarding PadWalker: if you are doing remote debugging, PadWalker must be installed on the remote machine. You should use PadWalker >= 1.0.

        Also note that any differences between the remote and local versions of modules will cause trouble (e.g. EPIC unable to find the local versions of remote files and unable to position the current instruction pointer properly).

         
    • Peter

      Peter - 2006-12-19

      Hi Jan,

      regarding breakpoints:
      I use the epic editor. I am able to define a breakpoint (toggle breakpoint) but it doesn't stop there. This behaviour is the same regardless if I perform local or remote debugging.

      regarding PadWalker:
      I have installed PadWalker 1.2 in combination with Perl 5.8.8 on both machines (local and remote). I also have written a simple testdriver which does nothing but a few prints. The source is exactly the same on both machines.

      I have no idea where the problem(s) could be located.

      Peter

       
      • Jan Ploski

        Jan Ploski - 2006-12-19

        Let's focus on the claim which is the most severe and should be easiest to debug: breakpoints ignored during local debugging under Windows.

        Please read my recommendation about setting up the debug console and replaying debug sessions in the other thread:

        https://sourceforge.net/forum/message.php?msg_id=4066901

        It would also help if you could paste the contents of the "perl -d" output from the Console view here, together with a simple sample script which reproduces the problem in your environment.

         
    • Peter

      Peter - 2006-12-22

      Ok, here you go.
      First of all I have set up two complete new eclipse installations with seperate workspaces but identical perl projects. One installation use 0.524 the other 0.525. The result is the same with 0.524 the debugger stops at breakpoints with 0.525 he doesn't.

      Here is the perl -d output from the console:
      ----------------------------------------------

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

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

      main::(C:\Daten\Perlworkspace_e.p.ic_0.525\Client\TestPerlLocal.pl:17):
      17:    my $ss = 'TestPerlLocal.pl >>>>>';
        DB<1> printf $DB::OUT "%vd", $^V;
      5.8.8
        DB<2> f C:/Daten/Perlworkspace_e.p.ic_0.525/Client/TestPerlLocal.pl
      No file matching `C:/Daten/Perlworkspace_e.p.ic_0.525/Client/TestPerlLocal.pl' is loaded.
        DB<3> b load C:/Daten/Perlworkspace_e.p.ic_0.525/Client/TestPerlLocal.pl
      Will stop on load of `C:/Daten/Perlworkspace_e.p.ic_0.525/Client/TestPerlLocal.pl'.
        DB<4> .
      main::(C:\Daten\Perlworkspace_e.p.ic_0.525\Client\TestPerlLocal.pl:17):
      17:    my $ss = 'TestPerlLocal.pl >>>>>';
        DB<5> T
        DB<6> .
      main::(C:\Daten\Perlworkspace_e.p.ic_0.525\Client\TestPerlLocal.pl:17):
      17:    my $ss = 'TestPerlLocal.pl >>>>>';
        DB<7> ;{
          if (eval { require PadWalker; PadWalker->VERSION(0.08) })
          {
              do 'dumpvar_epic.pm' unless defined &dumpvar_epic::dumpvar_epic;

              defined &dumpvar_epic::dumpvar_epic
                  or print $DB::OUT "dumpvar_epic.pm not available.\n";
         
              my $h = eval { PadWalker::peek_my(2) };
              my @vars = split(' ', '');
              $@ and $@ =~ s/ at .*//, print $DB::OUT ($@);
              my $savout = select($DB::OUT);
              dumpvar_epic::dumplex(
                  $_,
                  $h->{$_},
                  defined $option{dumpDepth} ? $option{dumpDepth} : -1,
                  @vars) for sort keys %$h;
              print "E";
              select($savout);
          }
          else
          {
              print $DB::OUT "PadWalker module not found - please install\n";       
          }
      };

      E
        DB<8> ;{
          do 'dumpvar_epic.pm' unless defined &dumpvar_epic::dumpvar_epic;

          defined &dumpvar_epic::dumpvar_epic
              or print $DB::OUT "dumpvar_epic.pm not available.\n";
             
          my $savout = select($DB::OUT);
          dumpvar_epic::dumpvar_epic();
          select($savout);
      };

      NS00000003$^AS00000002''NS00000003$^DS000000010NS00000003$^ES0000003c'Ein Vorgang bezog sich auf ein Objekt, das kein Socket ist'NS00000003$^FS000000012NS00000003$^HS00000003256NS00000003$^LS00000005"\cL"NS00000003$^OS00000009'MSWin32'NS00000003$^PS00000003831NS00000003$^SS000000011NS00000007$^TAINTS000000010NS00000009$^UNICODES000000010NS00000003$^VS0000000b"\cE\cH\cH"NS00000003$^WS000000010NS0000000e$^WARNING_BITSS00000026"\c@\c@\c@\c@\c@\c@\c@\c@\c@\c@\c@\c@"NS00000003$^XS00000020'C:\Programme\Perl\bin\perl.exe'NS00000002$!S00000002''NS00000002%!S00000003...INS00000007'E2BIG'S000000010NS00000008'EACCES'S000000010NS0000000c'EADDRINUSE'S000000010NS0000000f'EADDRNOTAVAIL'S000000010NS0000000e'EAFNOSUPPORT'S000000010NS00000008'EAGAIN'S000000010NS0000000a'EALREADY'S000000010NS00000007'EBADF'S000000010NS00000007'EBUSY'S000000010NS00000008'ECHILD'S000000010NS0000000e'ECONNABORTED'S000000010NS0000000e'ECONNREFUSED'S000000010NS0000000c'ECONNRESET'S000000010NS00000009'EDEADLK'S000000010NS0000000b'EDEADLOCK'S000000010NS0000000e'EDESTADDRREQ'S000000010NS00000009'EDISCON'S000000010NS00000006'EDOM'S000000010NS00000008'EDQUOT'S000000010NS00000008'EEXIST'S000000010NS00000008'EFAULT'S000000010NS00000007'EFBIG'S000000010NS0000000b'EHOSTDOWN'S000000010NS0000000e'EHOSTUNREACH'S000000010NS00000008'EILSEQ'S000000010NS0000000d'EINPROGRESS'S000000010NS00000007'EINTR'S000000010NS00000008'EINVAL'S000000010NS00000005'EIO'S000000010NS00000009'EISCONN'S000000010NS00000008'EISDIR'S000000010NS00000007'ELOOP'S000000010NS00000008'EMFILE'S000000010NS00000008'EMLINK'S000000010NS0000000a'EMSGSIZE'S000000010NS0000000e'ENAMETOOLONG'S000000010NS0000000a'ENETDOWN'S000000010NS0000000b'ENETRESET'S000000010NS0000000d'ENETUNREACH'S000000010NS00000008'ENFILE'S000000010NS00000009'ENOBUFS'S000000010NS00000008'ENODEV'S000000010NS00000008'ENOENT'S000000010NS00000009'ENOEXEC'S000000010NS00000008'ENOLCK'S000000010NS00000008'ENOMEM'S000000010NS0000000d'ENOPROTOOPT'S000000010NS00000008'ENOSPC'S000000010NS00000008'ENOSYS'S000000010NS0000000a'ENOTCONN'S000000010NS00000009'ENOTDIR'S000000010NS0000000b'ENOTEMPTY'S000000010NS0000000a'ENOTSOCK'S000000010NS00000008'ENOTTY'S000000010NS00000007'ENXIO'S000000010NS0000000c'EOPNOTSUPP'S000000010NS00000007'EPERM'S000000010NS0000000e'EPFNOSUPPORT'S000000010NS00000007'EPIPE'S000000010NS0000000a'EPROCLIM'S000000010NS00000011'EPROTONOSUPPORT'S000000010NS0000000c'EPROTOTYPE'S000000010NS00000008'ERANGE'S000000010NS00000009'EREMOTE'S000000010NS00000007'EROFS'S000000010NS0000000b'ESHUTDOWN'S000000010NS00000011'ESOCKTNOSUPPORT'S000000010NS00000008'ESPIPE'S000000010NS00000007'ESRCH'S000000010NS00000008'ESTALE'S000000010NS0000000b'ETIMEDOUT'S000000010NS0000000e'ETOOMANYREFS'S000000010NS00000008'EUSERS'S000000010NS0000000d'EWOULDBLOCK'S000000010NS00000007'EXDEV'S000000010ONS00000002$"S00000003' 'NS00000002$$S000000042944NS00000002$%S000000010NS00000002$-S000000010NS00000002$/S00000003'
      'NS00000002$0S0000003d'C:\Daten\Perlworkspace_e.p.ic_0.525\Client\TestPerlLocal.pl'NS00000002$:S00000005'
      -'NS00000002$;S00000005"\c\&quot;NS00000002$<S000000010NS00000002$=S0000000260NS00000002$?S000000010NS00000002$@S00000002''NS00000004%ENVS00000003...INS00000011'ALLUSERSPROFILE'S0000002a'C:\Dokumente und Einstellungen\All Users'NS00000009'APPDATA'S00000038'C:\Dokumente und Einstellungen\xv13499\Anwendungsdaten'NS00000009'BOICLCT'S00000015'30000;OFF;CONT;NONE'NS0000000a'BOIPARAM'S00000026'C:\PROGRAMME\TABEX3\SYS\BOIPARAM.TXT'NS00000009'BOIROOT'S00000015'C:\PROGRAMME\TABEX3'NS0000000b'CLASSPATH'S00000044'.;C:\Programme\Harvest7\AllFusion Harvest Change Manager\jhsdk.jar'NS0000000c'CLIENTNAME'S00000009'Console'NS00000014'COMMONPROGRAMFILES'S00000021'C:\Programme\Gemeinsame Dateien'NS0000000e'COMPUTERNAME'S00000009'RQ20501'NS00000009'COMSPEC'S0000001b'C:\WINNT\system32\cmd.exe'NS00000005'CPE'S0000001f'C:\Programme\Compuware\XPDev\'NS00000007'CWCFG'S00000025'C:\Programme\Compuware\XPDev\Common'NS00000020'DEVMGR_SHOW_NONPRESENT_DEVICES'S000000011NS0000000f'FINALBUILDDIR'S00000015'C:\Daten\Finalbuild'NS00000012'FP_NO_HOST_CHECK'S00000004'NO'NS0000000d'HARVESTHOME'S0000003b'C:\Programme\Harvest_7.1\AllFusion Harvest Change Manager'NS0000000b'HOMEDRIVE'S00000004'U:'NS0000000a'HOMEPATH'S00000003'\'NS0000000b'HOMESHARE'S00000014'\\SVC0018\XV13499$'NS00000009'INCLUDE'S00000061'C:\Programme\IBM\WebSphere MQ\tools\c\include;C:\Programme\IBM\WebSphere MQ\tools\cplus\include'NS0000000b'JAVA_HOME'S00000021'C:\Programme\Java\j2sdk1.4.2_06'NS00000005'LIB'S00000029'C:\Programme\IBM\WebSphere MQ\tools\lib'NS00000012'LOCALHARVESTHOME'S0000003b'C:\Programme\Harvest_7.1\AllFusion Harvest Change Manager'NS0000000d'LOGONSERVER'S0000000b'\\DC50547'NS0000000a'MQSERVER'S00000023'MQSEDM01.CLS20501.DT/TCP/MQSEDM01'NS00000016'NUMBER_OF_PROCESSORS'S000000012NS00000011'OPENMAKE_SERVER'S0000001f'http://harvest:58080/openmake'NS0000000d'ORACLE_HOME'S00000015'C:\Programme\Oracle'NS00000004'OS'S0000000c'Windows_NT'NS00000011'P98TBX_DEBUGSVR'S00000009'SV0178D'NS0000000f'P98TBX_SERVER'S0000000a'CCSTA091'NS00000006'PATH'S00000481'C:\Programme\Perl\bin\;c:\winnt\system32;c:\winnt;C:\Programme\Java\j2sdk1.4.2_06\bin;C:\Programme\oracle\bin;C:\Programme\oracle\jre\1.4.2\bin\client;C:\Programme\oracle\jre\1.4.2\bin;C:\PROGRA~1\FileNET\IDM;C:\PROGRA~1\FileNET\Shared;;C:\PROGRAMME\TABEX3\DLL;C:\PROGRAMME\TABEX3\BIN;C:\PROGRAMME\TABEX3\BAT;C:\Programme\CYGWIN\bin;C:\Programme\CYGWIN\usr\X11R6\bin;C:\Programme\Informix\Connect\bin;C:\Programme\FileNET\FNSW\CLIENT\BIN;C:\Programme\FileNET\FNSW\CLIENT\SHOBJ;C:\Programme\Symantec\pcAnywhere\;C:\Programme\Compuware\XPDev\BINW;C:\Programme\Gemeinsame Dateien\Compuware;C:\Programme\IBM\WebSphere MQ\bin;C:\Programme\IBM\WebSphere MQ\tools\c\samples\bin;C:\Programme\tivoli\lcf\bin\w32-ix86\mrt;C:\Programme\Microsoft SQL Server\80\Tools\BINN;T:\Harvest\Openmake_61\bin;c:\Programme\Microsoft SQL Server\90\Tools\binn\;C:\Programme\CA\SharedComponents\PEC\bin;C:\Programme\ActiveState Perl Dev Kit 6.0\bin;C:\Programme\Harvest_7.1\Cryptography\;C:\Programme\Harvest_7.1\AllFusion Harvest Change Manager;T:\Harvest\Scripte;C:\Programme\Personal Communications\;C:\Programme\IBM\Trace Facility\;C:\Programme\Open Text\Livelink Explorer\'NS00000009'PATHEXT'S00000032'.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'NS0000000a'PATH_OLD'S000004b0'C:\Programme\Perl\bin\;C:\Programme\ActiveState Perl Dev Kit 6.0\bin\;c:\winnt\system32;c:\winnt;C:\Programme\Java\j2sdk1.4.2_06\bin;C:\Programme\oracle\bin;C:\Programme\oracle\jre\1.4.2\bin\client;C:\Programme\oracle\jre\1.4.2\bin;C:\PROGRA~1\FileNET\IDM;C:\PROGRA~1\FileNET\Shared;;C:\PROGRAMME\TABEX3\DLL;C:\PROGRAMME\TABEX3\BIN;C:\PROGRAMME\TABEX3\BAT;C:\Programme\CYGWIN\bin;C:\Programme\CYGWIN\usr\X11R6\bin;C:\Programme\Informix\Connect\bin;C:\Programme\FileNET\FNSW\CLIENT\BIN;C:\Programme\FileNET\FNSW\CLIENT\SHOBJ;C:\Programme\Symantec\pcAnywhere\;C:\Programme\Compuware\XPDev\BINW;C:\Programme\Gemeinsame Dateien\Compuware;C:\Programme\IBM\WebSphere MQ\bin;C:\Programme\IBM\WebSphere MQ\tools\c\samples\bin;C:\Programme\tivoli\lcf\bin\w32-ix86\mrt;C:\Programme\Microsoft SQL Server\80\Tools\BINN;T:\Harvest\Openmake_61\bin;c:\Programme\Microsoft SQL Server\90\Tools\binn\;C:\Programme\CA\SharedComponents\PEC\bin;C:\Programme\ActiveState Perl Dev Kit 6.0\bin;C:\Programme\Harvest_7.1\Cryptography\;C:\Programme\Harvest_7.1\AllFusion Harvest Change Manager;T:\Harvest\Scripte;C:\Programme\Personal Communications\;C:\Programme\IBM\Trace Facility\;C:\Programme\Open Text\Livelink Explorer\'NS0000000c'PCOMM_ROOT'S00000027'C:\Programme\Personal Communications\'NS0000000f'PERL5LIB_SAVE'S00000030'C:\Programme\ActiveState Perl Dev Kit 6.0\lib\'NS0000000d'PERLDB_OPTS'S00000035'RemotePort=10.196.225.81:5000 DumpReused ReadLine=0'NS0000000d'PERLDB_PIDS'S000000042944NS00000018'PROCESSOR_ARCHITECTURE'S00000005'x86'NS00000016'PROCESSOR_IDENTIFIER'S00000030'x86 Family 15 Model 4 Stepping 1, GenuineIntel'NS00000011'PROCESSOR_LEVEL'S0000000215NS00000014'PROCESSOR_REVISION'S000000040401NS0000000e'PROGRAMFILES'S0000000e'C:\Programme'NS00000008'REFDIR'S00000017'C:\Daten\Web-Enabling'NS00000008'RTARCH'S00000009'i86_w32'NS00000008'RTHOME'S00000026'C:\Programme\CA\SharedComponents\PEC'NS0000000d'SESSIONNAME'S00000009'Console'NS00000009'SNC_LIB'S0000001f'c:\winnt\system32\gsskrb5.dll'NS0000000d'SYSTEMDRIVE'S00000004'C:'NS0000000c'SYSTEMROOT'S0000000a'C:\WINNT'NS00000006'TEMP'S00000023'C:\DOKUME~1\xv13499\LOKALE~1\Temp'NS00000005'TMP'S00000023'C:\DOKUME~1\xv13499\LOKALE~1\Temp'NS0000000f'USERDNSDOMAIN'S00000008'RUV.DE'NS0000000c'USERDOMAIN'S00000005'RUV'NS0000000a'USERNAME'S00000009'xv13499'NS0000000d'USERPROFILE'S00000028'C:\Dokumente und Einstellungen\xv13499'NS0000000f'VS80COMNTOOLS'S00000037'C:\Programme\Microsoft Visual Studio 8\Common7\Tools\'NS00000008'WINDIR'S0000000a'C:\WINNT'NS00000008'XPPCFG'S0000001f'C:\Programme\Compuware\XPDev\'ONS00000004@INCS00000003...INS00000003[0]S00000033'C:/Daten/Perlworkspace_e.p.ic_0.525/Client_Server'NS00000003[1]S00000047'C:/Daten/Perlworkspace_e.p.ic_0.525/.metadata/.plugins/org.epic.debug'NS00000003[2]S0000001c'C:/Programme/Perl/site/lib'NS00000003[3]S00000017'C:/Programme/Perl/lib'NS00000003[4]S00000003'.'ONS00000004%INCS00000003...INS00000016'ActivePerl/Config.pm'S0000002c'C:/Programme/Perl/lib/ActivePerl/Config.pm'NS00000015'ActiveState/Path.pm'S0000002b'C:/Programme/Perl/lib/ActiveState/Path.pm'NS0000000f'AutoLoader.pm'S00000025'C:/Programme/Perl/lib/AutoLoader.pm'NS0000002d'C:/Programme/Perl/site/lib/sitecustomize.pl'S0000002d'C:/Programme/Perl/site/lib/sitecustomize.pl'NS00000009'Carp.pm'S0000001f'C:/Programme/Perl/lib/Carp.pm'NS0000000f'Carp/Heavy.pm'S00000025'C:/Programme/Perl/lib/Carp/Heavy.pm'NS0000000b'Config.pm'S00000021'C:/Programme/Perl/lib/Config.pm'NS00000011'Config_heavy.pl'S00000027'C:/Programme/Perl/lib/Config_heavy.pl'NS00000008'Cwd.pm'S0000001e'C:/Programme/Perl/lib/Cwd.pm'NS0000000f'DynaLoader.pm'S00000025'C:/Programme/Perl/lib/DynaLoader.pm'NS0000000a'Errno.pm'S00000020'C:/Programme/Perl/lib/Errno.pm'NS0000000d'Exporter.pm'S00000023'C:/Programme/Perl/lib/Exporter.pm'NS00000013'Exporter/Heavy.pm'S00000029'C:/Programme/Perl/lib/Exporter/Heavy.pm'NS00000012'File/Basename.pm'S00000028'C:/Programme/Perl/lib/File/Basename.pm'NS00000007'IO.pm'S0000001d'C:/Programme/Perl/lib/IO.pm'NS0000000e'IO/Handle.pm'S00000024'C:/Programme/Perl/lib/IO/Handle.pm'NS0000000e'IO/Socket.pm'S00000024'C:/Programme/Perl/lib/IO/Socket.pm'NS00000013'IO/Socket/INET.pm'S00000029'C:/Programme/Perl/lib/IO/Socket/INET.pm'NS00000013'IO/Socket/UNIX.pm'S00000029'C:/Programme/Perl/lib/IO/Socket/UNIX.pm'NS0000000e'PadWalker.pm'S00000029'C:/Programme/Perl/site/lib/PadWalker.pm'NS00000010'SelectSaver.pm'S00000026'C:/Programme/Perl/lib/SelectSaver.pm'NS0000000b'Socket.pm'S00000021'C:/Programme/Perl/lib/Socket.pm'NS0000000b'Symbol.pm'S00000021'C:/Programme/Perl/lib/Symbol.pm'NS0000000d'Term/Cap.pm'S00000023'C:/Programme/Perl/lib/Term/Cap.pm'NS00000012'Term/ReadLine.pm'S00000028'C:/Programme/Perl/lib/Term/ReadLine.pm'NS00000017'Term/ReadLine/Perl.pm'S0000002d'C:/Programme/Perl/lib/Term/ReadLine/Perl.pm'NS0000000d'XSLoader.pm'S00000023'C:/Programme/Perl/lib/XSLoader.pm'NS0000000f'attributes.pm'S00000025'C:/Programme/Perl/lib/attributes.pm'NS00000013'autoflush_epic.pm'S00000059'C:/Daten/Perlworkspace_e.p.ic_0.525/.metadata/.plugins/org.epic.debug/autoflush_epic.pm'NS0000000d'constant.pm'S00000023'C:/Programme/Perl/lib/constant.pm'NS00000011'dumpvar_epic.pm'S00000057'C:/Daten/Perlworkspace_e.p.ic_0.525/.metadata/.plugins/org.epic.debug/dumpvar_epic.pm'NS0000000c'perl5db.pl'S00000022'C:/Programme/Perl/lib/perl5db.pl'NS00000007're.pm'S0000001d'C:/Programme/Perl/lib/re.pm'NS0000000b'strict.pm'S00000021'C:/Programme/Perl/lib/strict.pm'NS00000012'unicore/Exact.pl'S00000028'C:/Programme/Perl/lib/unicore/Exact.pl'NS00000010'unicore/PVA.pl'S00000026'C:/Programme/Perl/lib/unicore/PVA.pl'NS0000001f'unicore/lib/gc_sc/SpacePer.pl'S00000035'C:/Programme/Perl/lib/unicore/lib/gc_sc/SpacePer.pl'NS00000009'utf8.pm'S0000001f'C:/Programme/Perl/lib/utf8.pm'NS0000000f'utf8_heavy.pl'S00000025'C:/Programme/Perl/lib/utf8_heavy.pl'NS00000009'vars.pm'S0000001f'C:/Programme/Perl/lib/vars.pm'NS0000000d'warnings.pm'S00000023'C:/Programme/Perl/lib/warnings.pm'NS00000016'warnings/register.pm'S0000002c'C:/Programme/Perl/lib/warnings/register.pm'ONS00000004%SIGS00000003...INS00000006'ABRT'S00000005undefNS00000006'ALRM'S00000005undefNS00000007'BREAK'S00000005undefNS00000005'BUS'S0000000fCODE(0x1a1932c)S0000001b -> &CODE(0x1a1932c) in ???NS00000006'CHLD'S00000005undefNS00000005'CLD'S00000005undefNS00000006'CONT'S00000005undefNS00000005'FPE'S00000005undefNS00000005'HUP'S00000005undefNS00000005'ILL'S00000005undefNS00000005'INT'S0000000fCODE(0x1a00890)S00000013 -> &DB::catch in 0NS00000006'KILL'S00000005undefNS00000007'NUM05'S00000005undefNS00000007'NUM06'S00000005undefNS00000007'NUM07'S00000005undefNS00000007'NUM10'S00000005undefNS00000007'NUM12'S00000005undefNS00000007'NUM16'S00000005undefNS00000007'NUM17'S00000005undefNS00000007'NUM18'S00000005undefNS00000007'NUM19'S00000005undefNS00000007'NUM24'S00000005undefNS00000006'PIPE'S00000005undefNS00000006'QUIT'S00000005undefNS00000006'SEGV'S0000000fCODE(0x1a1932c)RNS00000006'STOP'S00000005undefNS00000006'TERM'S00000005undefNS00000009'__DIE__'S0000000fCODE(0x1a19668)S00000013 -> &DB::dbdie in 0NS0000000a'__WARN__'S0000000fCODE(0x1a194dc)S00000014 -> &DB::dbwarn in 0ONS00000012FileHandle(STDERR)S0000000c=> fileno(2)NS00000011FileHandle(STDIN)S0000000c=> fileno(0)NS00000012FileHandle(STDOUT)S0000000c=> fileno(1)NS00000002$]S000000085.008008NS00000002$^S0000000a'GEN0_TOP'NS00000002@_S00000003...INS00000003[0]S000000010NS00000003[1]S00000003'_'NS00000003[2]S00000008*main::_NS00000003[3]S000000010NS00000003[4]S00000004'-1'ONS00000012FileHandle(stderr)S0000000c=> fileno(2)NS00000011FileHandle(stdin)S0000000c=> fileno(0)NS00000012FileHandle(stdout)S0000000c=> fileno(1)NS00000002$|S000000011NS00000002$~S00000006'GEN0'E
        DB<9> .
      main::(C:\Daten\Perlworkspace_e.p.ic_0.525\Client\TestPerlLocal.pl:17):
      17:    my $ss = 'TestPerlLocal.pl >>>>>';
        DB<10> c
      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. 
      q
        DB<11>
      ----------------------------------------------

      And here is the little sample script. I have performed a local test on windows:
      ----------------------------------------------
      #########################################################################

      =head1 NAME

      TestPerlRemote.pl

      Testtreiber für Debugging mit E.P.I.C.

      =cut

      #######################################################################
      # use-Section
      #######################################################################

      use strict;

      my $ss = 'TestPerlLocal.pl >>>>>';
      my $ee = 'TestPerlLocal.pl >>>>> Error:';

      my $debug   = 1;
      my $machine = $ENV{COMPUTERNAME};

      #
      #----- CCC/Harvest - Footprinting-Info
      #
      if ($debug) {
          my $HarvestVersion = "1";        # @(#)
          my $HarvestProject = "S9208_CCM-CS_1.5_S";    # @(#)
          my $HarvestState   = "STEST";          # @(#)
          my $HarvestItem    = "TestPerlLocal.pl";           # @(#)

          print
      "\n======================================================================== \n";
          print "Harvest Footprinting Informationen\n";
          print "HARVEST - $HarvestItem"
            . " (Version $HarvestVersion"
            . ") aus $HarvestProject von $HarvestState\n";
          print
      "\n======================================================================== \n";
      }

      foreach (@INC) {
          print "$_\n";
      }

      print "Dies ist ein Test auf Maschine $machine\n";

      exit(0);

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

       
    • Peter

      Peter - 2006-12-22

      I have just compared the debug output.

      0.524
      -------
      DB<2> f TestPerlLocal.pl
      Choosing C:\Daten\Perlworkspace_e.p.ic_0.524\Client\TestPerlLocal.pl matching `TestPerlLocal.pl':
      Already in C:\Daten\Perlworkspace_e.p.ic_0.524\Client\TestPerlLocal.pl.
        DB<3> b 26
        DB<4> f TestPerlLocal.pl
      Choosing C:\Daten\Perlworkspace_e.p.ic_0.524\Client\TestPerlLocal.pl matching `TestPerlLocal.pl':
      Already in C:\Daten\Perlworkspace_e.p.ic_0.524\Client\TestPerlLocal.pl.
        DB<5> b 46
        DB<6> .

      0.525
      -------
        DB<2> f C:/Daten/Perlworkspace_e.p.ic_0.525/Client/TestPerlLocal.pl
      No file matching `C:/Daten/Perlworkspace_e.p.ic_0.525/Client/TestPerlLocal.pl' is loaded.
        DB<3> b load C:/Daten/Perlworkspace_e.p.ic_0.525/Client/TestPerlLocal.pl
      Will stop on load of `C:/Daten/Perlworkspace_e.p.ic_0.525/Client/TestPerlLocal.pl'.
        DB<4> .
      main::(C:\Daten\Perlworkspace_e.p.ic_0.525\Client\TestPerlLocal.pl:17):
      17:    my $ss = 'TestPerlLocal.pl >>>>>';
        DB<5> T
        DB<6> .

      Could the slashes instead of backslashes be the cause of the problem?

       
    • Peter

      Peter - 2006-12-22

      When I try to upgrade via eclipse update i am only getting offered 0.5.25. I have removed the plugin completely, but that didn't help.

       
      • Jan Ploski

        Jan Ploski - 2006-12-22

        I just upgraded through updates/testing myself without any problems. Give it another try? Maybe there is some lazy proxy involved on your side?

         
    • Peter

      Peter - 2006-12-22

      Seems to be, now the uprade worked.
      And the problem has been solved. The debugger stopps at breakpoints. Thanks a lot.
      Next week I will give the remote debugging another try.

      Merry Christmas to you

       
    • Peter

      Peter - 2006-12-27

      Hi Jan,

      I did get a little further with remote debugging. First I got the following error: Undefined subroutine &dumpvar_epic::dumpvar_epic called at (eval 21)[/opt/local/lib/perl5/5.8.8/perl5db.pl:628] line 9. I then extracted all perl programs and perl moduls from org.epic.debug_0.5.18.jar, transfered them to the remote machine. There I modified the environment variable PERLLIB accordingly. Now when I start debugging the variables are displayed. I wasn't aware of the fact that I have to install anything on my remote machine. Or is there a better way to do it?

      But I still have got the problem, that the debugger doesn't stop at breakpoints (only remote debugging). Anything else I have to copy to the remote machine.

      Peter

       
      • Jan Ploski

        Jan Ploski - 2006-12-27

        The undefined subroutine error that you mentioned should not occur when you use the start_epicDB.pl script from the ZIP archive created by EPIC. The required file dumpvar_epic.pm is included in this archive and resides in the same directory as the debugged script. start_epicDB.pl changes to this directory before launching perl, so dumpvar_epic.pm should be found.

        The other problem (ignored breakpoints) is caused by the (still) improper handling of paths in EPIC, corrected in 0.5.27:
        http://sourceforge.net/tracker/index.php?func=detail&aid=1623087&group_id=75859&atid=545274

         
    • Peter

      Peter - 2006-12-27

      I've got the following debug output.

        DB<12> f \apps\harvest\Harvest7\Skripte\TestPerlRemote.pl
      No file matching `\apps\harvest\Harvest7\Skripte\TestPerlRemote.pl' is loaded.
        DB<13> b load \apps\harvest\Harvest7\Skripte\TestPerlRemote.pl
      Will stop on load of `\apps\harvest\Harvest7\Skripte\TestPerlRemote.pl'.

      Seems as if there is a problem with backslashes on the remote machine (Unix). The error occured while setting a breakpoint.

      Peter

       
    • Peter

      Peter - 2006-12-28

      I wasn't aware that epic modules are included in the ZIP archive. I copied those files to the remote directory and the dumpvar_epic.pm is found. Your correction in 0.5.27 solved the problem of breakpoints being ignored while remote debugging.

      Perfect, thanks for your help

      Peter

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks