kaloyan_iliev wrote on Wed Dec 21 11:36:40 CET 2005:
Hi All, I have a big problem. I want to migrate project development from emacs to EPIC. Everithing look cool. I make the project to start when I press RUN button. I try to start a Web Application. So I use Perl CGI. I configure the Web Server and it runs and then everithing fails. The problems is that there are some module we have developed which rely on "Apache->request" and other functionality which is provided when the Application is run within the Apache Web Server. So my question is what can I do. I don't want to modify this libs just to make them independent from Apache(well, maybe I will but this is desperate decision). Can I make EPIC(or Eclipse I am not completely sure) to use Apache as Web Server? Can External Tools help me here? Any Ideas? Thanks In advance.
jploski wrote on Wed Dec 21 15:19:46 CET 2005:
Are you trying to debug the CGI application? Otherwise I do not understand why you attempt to "start" it from EPIC. Web applications are typically "started" by a browser requesting some URL. For the CGI debug mode, EPIC uses a built-in web server (project Brazil from Sun Labs) and it is currently not possible to replace it with another one without changing EPIC's code. If your application absolutely requires Apache (mod_perl?) as its runtime environment, you may have some luck debugging it with the "Perl remote" configuration. However, I have never used it myself, so I can't provide any real advice there.
luelljoc wrote on Thu Feb 9 09:28:22 CET 2006:
Hi, Jan is right. Although I haven't tried it, it should be possible by using the remote debugging functionality. It should be possible to use the mod_env module which comes with the standard Apache destribution. After including the module use something like this in your Apache configuration file: SetEnv PERLDB_OPTS RemotePort=: You have to add the -d option to the shebang line of your CGI scripts: #!/perl/bin/perl -d Start a "Perl Remote" session within eclipse. If the listening port matches the port given in the Apache configuration it might work. As mentioned before, I hanven't tried it. Just an idea, might be worth trying. Bye Jochen
morganni wrote on Wed Mar 1 22:16:53 CET 2006:
I tried Perl Remote, but netstat shows that EPIC does not even bind the port. So it can't work. Per remote debugging works in Apache against both Komodo and OptiPerl.
Note: The above is an archived snapshot of a forum thread. Use the original thread at sf.net to post comments.