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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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=<hostname>:<port>
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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.
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=<hostname>:<port>
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
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.