Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-10

Debugging cgi applications

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ludo Brands

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