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
