[fpc-pascal] Debugging cgi applications

Ludo Brands ludo.brands at free.fr
Fri Oct 28 18:15:01 CEST 2011


Dear all,

Atached is a small unit that makes debugging cgi applications easier. When
used in a program it will as part of the initialization launch a new process
which opens a terminal (windows:cmd, linux:xterm) and starts gdb attaching
to the calling proces. A short "sleep" makes sure gdb breaks the program
while still initializing. It has been tested on windows xp32 with apache 2.2
running as an application or as a service and on ubuntu 10.04 64 with apache
2.2. 
Further instructions are in the unit.

I've also tested this unit sucessfully in a windows library. It helps
debugging of dll's where the "Host Application" method fails. 

Ludo
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: selfdebug.pas
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20111028/8e6d06c0/attachment.ksh>


More information about the fpc-pascal mailing list