如何将Delphi调试器附加到64位IIS 7.5? [英] How can I attach the Delphi debugger to 64-bit IIS 7.5?
问题描述
我正在Windows 7 Pro 64和IIS 7.5上运行Delphi XE,正在开发ISAPI应用程序.IIS配置正确(包括允许32位代码在ISAPI进程中运行).ISAPI进程运行正常.
I'm running Delphi XE on Windows 7 Pro 64 and IIS 7.5, developing an ISAPI application. IIS is configured correctly (including allowing 32-bit code to run in an ISAPI process). The ISAPI process runs properly.
在Delphi中,我试图附加到在localHost上运行的ISAPI进程,以逐步执行我的ISAPI.dll代码:Run-> Attach to Process-> InetInfo.exe.
In Delphi I'm trying to attach to the ISAPI process running on localHost to step through my ISAPI.dll code: Run->Attach to Process->InetInfo.exe.
我已经使用Windows XP和IIS 5完成了1000遍,但是在这种新环境中,我无法附加到ISAPI进程中.尝试附加时在IDE中收到错误消息:
I've done this a thousand times with Windows XP and IIS 5, but in this new environment I cannot attach to the ISAPI process. I get an error message in the IDE when attempting to attach:
无法创建流程-不支持该请求
Unable to create process - the request is not supported
这花费了我很多时间-我必须为每行代码抽出调试字符串,运行应用程序,然后查看我的调试字符串,等等.
This is costing me lots of time — I have to pump out debug strings for every line of code, run the app, and then look at my debug strings, etc.
为什么不能附加到ISAPI进程?这是IIS 7.5配置问题吗?也许与32/64位问题有关,因为IIS是本机64位而Delphi调试器是32位?
Why can't I attach to the ISAPI process? Is this is an IIS 7.5 configuration issue? Perhaps related to 32/64-bit problems because IIS is native 64-bit and Delphi debugger is 32-bit?
推荐答案
在此处进行了解,为了清楚起见,在iis工作进程隔离模式下,w3wp.exe是加载isapi筛选器的进程,因此您应该附加它而不是inetinfo.exe.
To make it clear, in iis worker process isolation mode, w3wp.exe is the process that loads your isapi filters, so you should attach to it instead of inetinfo.exe.
这篇关于如何将Delphi调试器附加到64位IIS 7.5?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!