Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Perl Debugger Unable to Connect and Compilation Failed in Require

by sadarax (Sexton)
on Jun 17, 2014 at 02:55 UTC ( #1090098=perlquestion: print w/ replies, xml ) Need Help??
sadarax has asked for the wisdom of the Perl Monks concerning the following question:

Hello. I am trying to get perl debugging to work in Eclipse, but I am having trouble. I want to debug my program locally. (I don't need to do anything remotely.) I have spent a few days on Google but no success in finding out what is wrong.

I have tried running 'perl -d' from command line, and this works (assuming I don't set any remote host. Works great for local like I want.)

But using using Eclipse 4.3.2 with the latest version of EPIC for debugging fails.

I am using Fedora 20 64-bit Kernel 3.14.7-200.fc20. Perl version 5.18.2. I have disabled SELinux and turned off my firewall (via systemctl stop firewall).

I have specifically setup Perl Local in the Debug configuration. (I can run the program just fine without debug.) The script is basically just a Hello World script, but I don't think the script itself is the problem. Here is the console output:

Unable to connect to remote host: 198.105.254.23:5001 Compilation failed in require. at filename_transfer.pl line 0. main::BEGIN() called at filename_transfer.pl line 0 eval {...} called at filename_transfer.pl line 0 BEGIN failed--compilation aborted. at filename_transfer.pl line 0. 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. DB<1>

That is not my IP address either. I am not sure how to force Perl Debugger to use only Local. (Like I said, I specifically created a Debug Run profile only for Local, but it still tries to use remote.) I have checked to make sure there are no other Perl programs running trying to use that port. I have no ~/.perldb or anything else I am aware of.

Comment on Perl Debugger Unable to Connect and Compilation Failed in Require
Download Code
Re: Perl Debugger Unable to Connect and Compilation Failed in Require
by GotToBTru (Chaplain) on Jun 17, 2014 at 03:06 UTC

    What happens if you omit the PERLDB_OPTS? If you are debugging locally, you don't need the remoteport setting.

    1 Peter 4:10
      Thank you for that reply. I just tried that in a fresh shell and it actually works. This does not solve my Eclipse EPIC perl debugger problem though.

      I have specifically setup Perl Local in the Debug configuration. (I can run the program just fine without debug.)

      I will update the first post to reflect the problem only seems to be in Eclipse Perl Debugger. I really want to be able to use breakpoints and variable inspection in my perl programs. (I also wish I could get variable name refactoring working, but can't.)

        I don't use Eclipse so my help from this point on will be limited. I did look at the EPIC User's Guide and it looks pretty clearly written.

        1 Peter 4:10

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1090098]
Approved by GotToBTru
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (22)
As of 2014-07-23 15:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (145 votes), past polls