Article ID: 238788 - Last Review: December 3, 2007 - Revision: 4.7 HOW TO: Debug Common Gateway Interface Applications Running Under IIS by Using Visual StudioThis article was previously published under Q238788 On This PageSUMMARY This step-by-step article
describes how to debug Common Gateway Interface (CGI) applications that are
running under Internet Information Services (IIS) by using any version of
Visual Studio. Debug a Visual C CGI Application by Using Visual StudioTo debug a Visual C CGI application by using any version of Visual Studio, follow these steps:
Using WinDBGTo debug a CGI application with WinDBG, although you do not have to change any code, you do have to be familiar with WinDBG and install the debugging tools. You can download the debugging tools from the following Microsoft Web site:Microsoft Debugging Tools http://www.microsoft.com/whdc/devtools/ddk/default.mspx (http://www.microsoft.com/whdc/devtools/ddk/default.mspx) Set Service OptionsSet the Image File Execution options so that when the service (or the CGI program) starts, it starts under the debugger. Make sure that the service can interact with the desktop, as instructed earlier in this article. Otherwise, when the CGI program starts, it loads the debugger and you will not see it.
adsutil.vbs w3svc/CreateProcessAsUser "false" REFERENCESFor additional information about debugging, click the
article numbers below to view the articles in the Microsoft Knowledge Base: 273639
(http://support.microsoft.com/kb/273639/EN-US/
)
HOW TO: Start IISAdmin and Dependent Services Under a Debugger
286350
(http://support.microsoft.com/kb/286350/EN-US/
)
HOW TO: Use ADPlus to Troubleshoot "Hangs" and "Crashes"
261871
(http://support.microsoft.com/kb/261871/EN-US/
)
INFO: COM+ and MTS Debugging Resources
183480
(http://support.microsoft.com/kb/183480/EN-US/
)
HOW TO: Debug ISAPI DLLs Under IIS 4.0 and IIS 5.0
| Article Translations
|
Back to the top
