Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Perl Editor - Eclipse EPIC - How to debug?

by vi_srikanth (Acolyte)
on Jul 21, 2006 at 06:45 UTC ( #562785=perlquestion: print w/replies, xml ) Need Help??
vi_srikanth has asked for the wisdom of the Perl Monks concerning the following question:

Hi

Can anybody help me with Eclipse EPIC editor?

I have installed Eclipse and have installed perl plugin EPIC also. I dont have any problem in running a perl file. I get proper output in the console window. But, I have problem in debugging a perl file!

I did:
Run -> Debug ->
Perl Local (Debug=Debug Run=Perl) ->
MyPerlConfiguration Project="MyProject"
File="MyPerl.pl",

If I do the above thing, the "step into", "step over" should get enabled right?, but they are disabled always! As well as I am not seeing any variable in the variable window.

I also tried break points. I set two break points. I did debug steps as said above. In the "Debug view" I see something like
"> Perl-Debugger". If I click on the "right arrow" nothing gets expanded! However it looks like the breakpoints work, bcos the execution stops as many times as many breakpoints set. But, it is of no use because I am unable to see the value of any variable as well as I dont know in which breakpoint the current execution is. As well as the step into and step over doesn't work! Any help is greatly appreciated.

Many thanks
Srikanth

  • Comment on Perl Editor - Eclipse EPIC - How to debug?

Replies are listed 'Best First'.
Re: Perl Editor - Eclipse EPIC - How to debug?
by g0n (Priest) on Jul 21, 2006 at 08:13 UTC
    What versions of Eclipse & EPIC have you got installed? I had exactly this problem with EPIC 0.3.0 and Eclipse 3.1. Installing EPIC 0.3.12 fixed the problem. Also, make sure you have PadWalker installed if you want to view variables.

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

    "If there is such a phenomenon as absolute evil, it consists in treating another human being as a thing."
    John Brunner, "The Shockwave Rider".

    Can you spare 2 minutes to help with my research? If so, please click here

      Hooooooooooraaaaaaaaaaay!!!!!!

      Curent EPIC version was the problem! I installed 3.12 which is a testing version and now it works perfectly. Thank u very much. I was struggling with this for the past 2 days :(

      Thanks a lot

Re: Perl Editor - Eclipse EPIC - How to debug?
by Khen1950fx (Canon) on Jul 21, 2006 at 08:34 UTC
    There are two points that I think should be considered. First, Eclipse is an excellent IDE, but the problem is Java. Java requires a lot of RAM---I wouldn't touch it with less than a gig of RAM. My current computer only has 256 megs, and, when I try to use Epic, the whole machine slows down to a crawl. So make sure that you have enough RAM. Epic will be erratic if there's not enough. Sun recommends at least 512mb just to install the sdk. Second, it sounds to me as if you are missing a module. For the Epic plugin to work right, make sure that you have the PadWalker module---it'll enable you to see variables in a subroutine. You can get it from CPAN.

    There's a great piece on debugging with Epic. It covers all your questions. It's a must read. See:

    http://www-128.ibm.com/developerworks/edu/os-dw-os-epic-i.html?S_TACT=105AGX44&S_CMP=ECL

    It requires registration, but it's free.

Re: Perl Editor - Eclipse EPIC - How to debug?
by explorer (Chaplain) on Jul 21, 2006 at 10:27 UTC
    After set MyPerl.pl project, click on debug button and select MyProject. This activate the debug view.
    To debug with Eclipse is tricky, until you learn all steps sequence.
    To close debug, first select Terminate at Run menu and after it, to close debug view.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://562785]
Approved by neversaint
help
Chatterbox?
LanX "I put lipstick on a pig,"
[erix]: it does seem to get out of hand -- but then again, it looks like that for months already :)
[LanX]: the bets are rather who will leave office first Trump or May
[erix]: Harakiri with a nuke on the white house, that'd clean up the staff there a bit too ;)

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (13)
As of 2017-08-18 13:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (302 votes). Check out past polls.

    Notices?