httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <>
Subject Re: Debugging in Windows
Date Mon, 27 Aug 2001 05:18:38 GMT
From: "Amit Athavale" <>
Sent: Monday, August 27, 2001 12:10 AM

> Hello,
> In Win32 environment there are two procees run by apache. One is main proceess 
> and other is child one. But this makes debugging difficult. As we start Dev studio 
> debugger on main procees. 

Unless you attach-to-process, in which case, you run out to the task manager, change
the view to display the threads column, choose the one with 50+ instead of only 3 threads,
and attach to that process id.

Much easier, simply edit the project settings, debug tab, and change the arguments!
-D ONE_PROCESS for 2.0 or if you are playing in 1.3, use -X.  You need to change those
anyway to point to the _installed_ Apache.exe location, not the build tree location.

> Is there any way to start apache in single process. Other than changing following 
> code :: static int one_process = 1;

Yes, the argument.

> Can we have some preprocessor definitions to make it one-process

Better, change the debug settings.

and if you are debugging shared modules, change the debug setting to include the .so
you are developing (at it's target location in /Apache/modules/... not in the build
tree) in the Additional DLLs tab.  That way, it preserves your breakpoints, even though
it won't get into that module until after the module is loaded.

Happy debugging :)

View raw message