[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Future of Web Application in Gambas


Le 22/04/2025 à 16:06, Lee a écrit :

I am confused, Olivier. You talk about the internal libthttpd web server. But, isn't that intended to be used only for debugging?
Whereas, a Web Application, in production use, should be run on an
actual web server like Apache, Nginx, or Lighttpd. What am I
missing?


Nothing, you are right. The 'gb.httpd' component is based on 'thttpd', which is an unmaintained old http server. So it's a better idea to use a full maintained http server in production.

I used thttpd because I wanted a "simple" source code to implement web application debugging.

This is now less useful, as the IDE is able to debug external processes.

I mean:

1) You run a local http server with your web application executable installed as a CGI script. In other words, it's your production environment installed locally.

2) You put some breakpoints in your web application source code. The running executable must be in sync with the source code (obviously).

3) You click on the "Debug extern process" menu entry in the IDE.

4) The IDE now waits...

5) You use your web application locally from your preferred browser.

6) As soon as one request of your web application reaches one of the breakpoints set on 2), the IDE wakes up and starts debugging that request.

Very handy to debug web applications!

Regards,

--
Benoît Minisini.


Follow-Ups:
Re: Future of Web Application in GambasBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
References:
Future of Web Application in GambasLinus <olivier.cruilles@xxxxxxxx>
Re: Future of Web Application in GambasBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Future of Web Application in GambasLinus <olivier.cruilles@xxxxxxxx>
Re: Future of Web Application in GambasLee <t.lee.davidson@xxxxxxxxx>