[fpc-pascal] Debugging CGI web apps

Graeme Geldenhuys graemeg.lists at gmail.com
Wed Mar 24 08:26:30 CET 2010


Hi,

How do others debug CGI web apps written in Object Pascal? Yesterday I
spent a significant amount of time debugging a few difficult problems. It
took much longer than expected. Even though the CGI apps are written in
Object Pascal I couldn't use GDB to step through the code (if one can,
please let me know), so i had to solely rely on logfile output.

Is there a better way of debugging CGI applications?  Note I am not using
any web-type framework. I'm using very limited features of PWU - most
output is simply by writeln('...') statements, but our CGI apps do use
Cookies, OOP, Database Access etc..

I have Kylix 3 Enterprise at my disposal as well. Could that maybe be used
to help debug CGI apps? Though this might be more work than I would wish
for, because I doubt our code is Kylix compatible.

Is it at all possible to step through CGI apps with GDB?

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/




More information about the fpc-pascal mailing list