httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: How do "normal" developers debug apachemodules?
Date Tue, 05 Dec 2006 18:42:21 GMT
Nick Kew wrote:
> On Tue, 5 Dec 2006 15:46:53 +0530
> "Manish Chakravarty" <manishchaks@gmail.com> wrote:
> 
>> I am using apache 1.3.37, and am trying to write a module for it.
>> I know of no possible way to debug it. Can someone please give some
>> pointers/tips?
>>
>> would gdb on GNU/LInux be a better choice?
> 
> gdb is an option.  Chapter 12 of my book describes how to use it:
> that at least is valid even for Apache 1.

So is VC.  The essential thing on every build of apache is to start it
with the -X flag in httpd 1.3 - you will get ONE worker process and no
parent process.  You can now step it, debug it or whatnot.

If you omit -X (or in 2.x, the -DONE_PROCESS flag) you will find yourself
debugging the PARENT process.  In that case, you have to attach to the
pid of the worker process you want to debug.

Mime
View raw message