调试 Windows CGI 的最佳方法

发布于 2024-07-10 02:08:00 字数 227 浏览 5 评论 0原文

我有一个使用 Delphi 2007 使用 CGIExpert 创建的 Windows CGI,我需要对其进行调试。

有没有简单的方法可以在向 IDE 传递参数的同时运行它? 我尝试将主机应用程序设置为 iexplore.exe(运行|参数)并在“参数”字段中输入一些文本,但它似乎无法在运行时传递任何参数。

有人知道一种方法,让我可以从 Delphi IDE 中运行带有一些参数的 cgi 吗?

I have a Windows CGI created with Delphi 2007 using CGIExpert that I need to debug.

Is there any simply way to run it from within the IDE while passing parameters to it? I tried setting the Host Application to iexplore.exe (Run|Parameters) and entering some text on the Parameters field but it just can't seem to pass any parameters at runtime.

Anyone knows of a way so that I can run the cgi with some parameters from within Delphi IDE?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

青丝拂面 2024-07-17 02:08:00

如果您有较新版本的 Delphi,它会附带一个专门用于此目的的内置 WebApp 调试器。 如果您有旧版本的 Delphi,请尝试 CGIExpert,这是在 Delphi 中使用 CGI 的最佳方法。

If you have newer versions of Delphi it comes with a built-in WebApp Debugger just for this purpose. If you have an older version of Delphi, try CGIExpert which was the best way to use CGI in Delphi.

玩世 2024-07-17 02:08:00

我用来调试基于 ISAPI 的应用程序的是 idDebugger。 虽然我还没有专门在 CGI 应用程序中尝试过它,但它可能值得一看。 作者特别提到它有助于 CGI 应用程序。 这个解决方案的好处是它使得调试 ISAPI(我怀疑是 CGI 应用程序)就像调试基于 Windows 窗体的应用程序一样简单......只需设置几个断点并进行调试即可。

要使用它,只需将工作目录设置为 CGI/ISAPI 可执行文件所在的目录,并将主机应用程序设置为 idDebugger.exe 文件。 然后将参数设置为 URL 行(减去 http://localhost/)并完成所有设置。

Something I have used to debug ISAPI based applications is idDebugger. While I haven't specifically tried it with a CGI application, it might be worth a look. The author specifically mentions the fact that it assists with CGI applications. The nice thing about this solution is that it makes debugging an ISAPI (and I suspect a CGI application) as easy as debugging a windows form based application...just set a few breakpoints and debug away.

To use it, just set the working directory to the directory where your CGI/ISAPI executable is located, and set the host application to the idDebugger.exe file. Then set the parameters to the URL line (minus the http://localhost/) and your all set.

脱离于你 2024-07-17 02:08:00

为此,您需要一个网络服务器。 将其加载到网络服务器后,您可以将 Delphi 调试器附加到它。 不完全是 F9 和调试,但它可以工作。

如果您使用 Delphi 的网络代理工具构建了 CGI,您还可以选择制作一个 Webapp 调试器,它使用一个小型网络服务器仅用于调试目的。 如果您对应用程序进行了正确的建模,则可以在实际生产 CGI 和 Web 应用程序调试器版本中使用相同的代码,以获得两全其美的效果。 请参阅https:// /web.archive.org/web/1/http://articles.techrepublic%2ecom%2ecom/5100-10878_11-1050539.html

You need a webserver for that. Once you loaded it into the webserver you can attach the Delphi debugger to it. Not exactly F9 and debug, but it works.

If you have build the CGI using Delphi's web-broker stuff you can also choose to make a Webapp Debugger which uses a small webserver for debug purpeses only. If you model your application right you can use the same code in both a real production CGI and a webapp debuger version to get the best of both worlds. See https://web.archive.org/web/1/http://articles.techrepublic%2ecom%2ecom/5100-10878_11-1050539.html

复古式 2024-07-17 02:08:00

这没有回答您的问题,但可能会有所帮助:

http://www.htmlhelp .org/tools/cg-eye/live.html

您传递 CGI 的 URL,它会向其发送值以检测问题。

This is not answering your question but might be helpful:

http://www.htmlhelp.org/tools/cg-eye/live.html

you pass the URL of your CGI and it sends values to it to detect problems.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文