On Tue, 19 Jan 2021, duilio foschi via lazarus wrote:

How can I trace the code then?

It's a normal Lazarus application. You can just debug the application like any other.

Start a 'HTTP server application' in lazarus, add your web module unit to it
and run it. (you may need to add some more units or packages, in essence the
same oneas as in your CGI application).

Once done with debugging, you can simply compile the CGI and deploy it.

Michael.



On Tue, Jan 19, 2021, 22:11 Michael Van Canneyt via lazarus <
lazarus@lists.lazarus-ide.org> wrote:



On Tue, 19 Jan 2021, duilio foschi via lazarus wrote:

I would like to debug a CGI by tracing it in Lazarus IDE as a console
application in windows.

Is there a way to have the CGI read from standard input at start time?

I recommend to host your webmodule in a http server app, this will make
debugging it a lot easier.

Michael.
--
_______________________________________________
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


--
_______________________________________________
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to