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.


In reply to Perl Debugger Unable to Connect and Compilation Failed in Require by sadarax

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.