Autore Topic: Debug di applicazioni web direttamente dall'IDE  (Letto 288 volte)

Offline vuott

  • Moderatore globale
  • Senatore Gambero
  • *****
  • Post: 11.305
  • Ne mors quidem nos iunget
    • Mostra profilo
Debug di applicazioni web direttamente dall'IDE
« il: 27 Luglio 2013, 21:04:47 »
Vi riporto un messaggio inviato da Minisini apparso nella M.L.I.:


" Since revision #5765, it is possible to debug web applications directly
from the IDE.

How does it work?

As soon as you have selected the 'gb.web' component in your project, a
new debugging option is available in the 'Options' tab of the project
property dialog: "Use an embedded HTTP server".

If you check this option, when you run your project from the IDE:

- Your project starts an embedded http server (the 'gb.httpd' component).

- Your project is run as a CGI script from the embedded http server
through a new child process.

- A browser is automatically opened on http://localhost:8080 (the
default port used by the embedded http server).

- Only one CGI script is run at a time. So if you set a breakpoint, the
debugged process is the one that answer to the very first request. All
other requests are stalled, and can even returns the 503 error code if
you are too long to debug!

- If your project ends, it is started again to answer the next request,
and is debugged the same way.

If you want to change the http port, use the GB_HTTPD_PORT environment
variable.

All that is at a very early experimental stage, so expect lots of quirks
(mainly because between the IDE and the debugged process stands the
embedded HTTP server).

So I need your comments, tests and ideas about it!

Thanks in advance by those who are interested in that new feature.

Regards,

--
Benoît Minisini
"
« Chiunque, non ricorrendo lo stato di necessità, nel proprio progetto Gambas fa uso delle istruzioni Shell o Exec, è punito con la sanzione pecuniaria da euro 20,00 a euro 60,00. »