将 Apache 2.2 作为单个 httpd.exe 运行以进行调试
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1456601/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Run Apache 2.2 as a single httpd.exe for debugging
提问by Stijn Sanders
I'm running Apache 2.2 in console mode on Windows to test an apache module I'm writing. By default, a parent httpd.exe is started (with one thread), which starts a child httpd.exe with a number of worker threads.
我在 Windows 上以控制台模式运行 Apache 2.2 以测试我正在编写的 apache 模块。默认情况下,启动一个父 httpd.exe(使用一个线程),它启动一个带有多个工作线程的子 httpd.exe。
Now I have to attach the debugger to the child process each time to be able to debug my module.
现在我每次都必须将调试器附加到子进程才能调试我的模块。
Is there a way to configure Apache to run from a single httpd.exe? (Like good old days if I remember correctly) I've been searching the docs, but don't find anything else than limitations of the number of requests handles per thread or process...
有没有办法将 Apache 配置为从单个 httpd.exe 运行?(如果我没记错的话,就像过去的美好时光)我一直在搜索文档,但除了每个线程或进程的请求句柄数量限制之外,没有找到任何其他东西......
采纳答案by vpram86
You might want to use httpd.exe -Xwhich will run apache as a single process without giving back terminal/cmd prompt control.
您可能希望使用httpd.exe -Xwhich 将 apache 作为单个进程运行,而无需返回终端/cmd 提示控制。

