#499 Problem setting breakpoints

open
Debugger (177)
5
2008-05-13
2008-05-13
Anonymous
No

Since I got my new workstation, I have a problem debugging using E-P-I-C, every time I want to set a breakpoint I get:

BDCcust.pl/2912 [#notice(core)]: unhandled exception caught: Undefined subroutine &epic_breakpoints::add_breakpoint called at (eval 31)[D:/eclipse/Perl/lib/perl5db.pl:638] line 11.

I've copied eclipse and reinstalled Active State Perl (5.8.8) and rebuilt ppm list.

Because of the eclipse distribution was an Yoxos created one, I needed to update E-P-I-C by deleting the 0.5.41 and install 0.6.23 "manually" using eclipse's "Install new feature".

I don't know where to search what's going wrong, so maybe it's a bug?

Discussion

  • Jan Ploski

    Jan Ploski - 2008-05-14

    Logged In: YES
    user_id=86907
    Originator: NO

    It sounds as if EPIC was either unable to patch your perl5db.pl with the single line needed to include the epic_breakpoints.pm module or it is picking up the wrong (unpatched) perl5db.pl. Have a look at the file workspace/.metadata/.plugins/org.epic.debug/perl5db.pl - this is the one which should be used by EPIC instead of your system's default one. Does it contain the following line?

    { use epic_breakpoints; my $osingle = $single; $single = 0; $single = epic_breakpoints::_postponed($filename, $line) || $osingle; }

     
  • Nobody/Anonymous

    Logged In: NO

    Yes, my ${workspace}/.metadata/.plugins/org.epic.debug/perl5db.pl contains the requested line (line number 5520).
    So it seems to pick up the wrong file ...

     
  • Jan Ploski

    Jan Ploski - 2008-05-19

    Logged In: YES
    user_id=86907
    Originator: NO

    If you enable the debug console in EPIC preferences and start a script in debug mode, the command line used to start the Perl interpreter will be appended to ${workspace}/.metadata/.log. It should contain an -I option which points to ${workspace}/.metadata/.plugins/org.epic.debug - this is to make -d pick up EPIC's perl5db.pl rather than the default one. I don't know why it's doesn't work for you, but maybe looking at this command line will reveal some clues.

     
  • Nobody/Anonymous

    Logged In: NO

    That was the solution, the -I .metadata/.plugins/org.epic.debug is added after project includes.
    Maybe it should gonna added before project includes ...

    !ENTRY org.epic.debug 1 0 2008-05-20 12:44:53.996
    !MESSAGE Starting Perl debugger:
    Command line:
    D:\eclipse\Perl\bin\perl.exe
    -ID:/eclipse/workspace/BDC/lib
    -ID:/eclipse/Perl/lib
    -ID:/eclipse/Perl/site/lib
    -ID:/eclipse/workspace/.metadata/.plugins/org.epic.debug
    -ID:/eclipse/workspace/BDC/bin
    -d
    -w
    -Mautoflush_epic
    D:/eclipse/workspace/BDC/bin/BDCcust.pl
    help
    Working directory: D:\eclipse\workspace\BDC\bin
    Environment:

     

Log in to post a comment.