in reply to EPIC Debugger not stopping at breakpoint

That's odd it works for me. Well I hardly ever use it but it stops at breakpoints.

I set a breakpoint and after a right-mouse click I choose from the pop-up menu "Debug as -> 1. Perl local". I get an error/warning because I haven't installed Padwalker (necessary to display local variables). Next I step through the code with the debugger until I choose "Step return". The debugger halts the script at the breakpoint. I did not configure anything to use the debugger.

I use the standard Perl on my Mac. I have also used Eclipse & EPIC under Linux Redhat and on Windows (several flavours). Debugging always worked as far as I remember.

Well, you can always resort to Perl -d;)

Cheers,

Harry

  • Comment on Re: EPIC Debugger not stopping at breakpoint

Replies are listed 'Best First'.
Re^2: EPIC Debugger not stopping at breakpoint
by wwe (Friar) on Mar 19, 2010 at 16:15 UTC
    My debugger also fails with a message:
    Use of uninitialized value in subroutine dereference at (null) line 1. perl5db.pl did not return a true value. BEGIN failed--compilation aborted.
    Maybe i missed to install some modules. System is indows XP SP3 with Strawberry Perl 5.10 and EPIC 0.6.35 Update: after including perl/lib directory to project path like described on http://sourceforge.net/tracker/index.php?func=detail&aid=2907155&group_id=75859&atid=545274 the debugger works fine and stops on breakpoints.
    ... Including the path to the perl5db.pl file (Perl\lib directory) to the +Perl Include Path to my project (Project->Properties->Perl Include Path) wo +rks for me.
      I finally got the debugger to stop at breakpoints:
      1. Project -> Properties -> Perl Include Path
      2. Make sure to add the following directory BEFORE c:\strawberry\perl\lib
      c:\ECLIPSE_WORKSPACE\PROJECT_NAME\.metadata\.plugins\org.epic.debug

      Change c:\ECLIPSE_WORKSPACE\PROJECT_NAME accordingly to match your configuration.
        It is 2024 now and this problem and the solution is still the same:

        You have to manually add c:\ECLIPSE_WORKSPACE\PROJECT_NAME\.metadata\.plugins\org.epic.debug
        as you described - and there's no way to order the individual include paths afterwards - you have to add them in the order you want them to appear...

        Anyway for me, it doesn't break on breakpoints set in any package file - it only breaks at breakpoints set in the main file.

        Moreover, if I set a breakpoint in a package file and another one in the main file, the debugger stops at the latter each time the breakpoint in the package file is hit - very strange.
        Hi If anyone is checking for a more recent solution Why is the debugger not working (ActiveState or Strawberry Perl under Windows)? A recent release of PathTools (part of Perl distribution, file Cwd.pm) unfortunately contains a bug which breaks EPIC's debugger frontend. The specific symptom is the error message "perl5db.pl did not return a true value." - to see this message, you should enable the "debugger console" in EPIC Preferences. Furthermore, if you have this problem, debugging doesn't work at all. To fix it, you must edit Cwd.pm of your Perl distribution and remove the offending "eval" keyword from one line, as described in this bug report. DO NOT attempt to fix it by adding Perl's "lib" directory to your project's include path, as this will cause all breakpoints to be ignored!