Menu

Can't debug CGI

Help
2016-09-26
2016-10-05
  • Lobster De Lobsteris

    Dear sirs,

    I've just installed Eclipse and the EPIC plug-in, read the user's guide and started using the IDE. As far as the "perl local" run configuration is concerned everything is OK: I can run my script and output appears on the Eclipse console.

    I tried to run a CGI but it doesn't work at all, regardless of the configuration I make I always get

    Error: Could not find or load main class sunlabs.brazil.server.Main
    

    in the output console and after a while a pop-up saying

    (CGI-Target) Could not connect to CGI-Proxy
    

    I couldn't do a "proper" install of EPIC as I am behind a firewall and I can't use the standard procedure. I had to copy the following files in the Eclipse's "dropins" directory:

    D:\Work\Programs\eclipse\dropins>dir
     Volume in drive D is Data
     Volume Serial Number is EC47-CF56
    
     Directory of D:\Work\Programs\eclipse\dropins
    
    26/09/2016  11:56    <DIR>          .
    26/09/2016  11:56    <DIR>          ..
    27/07/2009  12:16           297.940 org.epic.debug_0.6.27.jar
    27/07/2009  12:16           847.344 org.epic.doc_0.6.2.jar
    27/07/2009  12:16           812.941 org.epic.lib_0.6.1.jar
    27/07/2009  12:16         1.039.881 org.epic.perleditor_0.6.24.jar
    27/07/2009  12:16            24.259 org.epic.regexp_0.6.1.jar
    27/07/2009  12:16           624.163 org.epic.source_0.6.35.jar
                   6 File(s)      3.646.528 bytes
                   2 Dir(s)  203.027.480.576 bytes free
    

    Everything seems to work well but CGI execution/debug, which are the main reasons I moved to Eclipse and EPIC.

    In the following the relevant configuration:

    HTML Root Directory: D:\Work\Programs\eclipse\workspace\TestCGI\old
    HTML Startup File: D:\Work\Programs\eclipse\workspace\TestCGI\old\printenv.pl (but I also tried with a "real" HTML file in this directory)
    CGI Root Directory D:\Work\Programs\eclipse\workspace\TestCGI\old
    

    Any help would be greatly appreciated.

    Thanks.

     
  • Lobster De Lobsteris

    Does anybody can help me? I can't debug CGI.

    I keep having the same error message, also after updating:

    Error: Could not find or load main class sunlabs.brazil.server.Main
    

    And the same pop-up.

    Regards.

     

Log in to post a comment.